GKSHOP
Web StoreDiscord
  • 👋GKSHOP Documentation
  • INFORMATION
    • ⁉️FAQ
    • 💡Discord Roles
    • ⚠️FiveM Asset Escrow System
  • GKSPHONE v2
    • 📔Installation
    • ❓Documentation
    • 👷Exports
      • Client
      • Server
    • 🪛Custom App
    • Configuration
      • Unique phones
      • Custom inventory
      • Custom Wallpapers
      • Custom ringtones and notifications
      • Apps
      • Currency
    • Common Issues
    • 🚒Job Center
  • GKSPHONE v1
    • 📱ESX
      • 📔Installation
      • ❓Documentation
      • Application Usages
      • Developers
        • Server Event
        • Client Event
    • 📱QB
      • 📔Installation
      • ❓Documentation
      • Application Usages
      • Developers
        • Server Event
        • Client Event
  • Other Products
    • ⚒️GKSCRAFT
      • 📘Installation
      • Config
      • Developers
        • Server Event
    • ⛽GKS FUEL
      • 📔Installation
      • Config
      • Exports
    • 📸Media Services (GKSMEDIA)
    • 📲GKSPHONE Real App
  • OTHER
    • Policy
      • Privacy Policy
Powered by GitBook
On this page
  • Step 1: File Location
  • Step 2: Items
  • Step 3: Insert SQL Query
  • Step 4: Framework
  • Step 5: Serverconfig.lua Configuration
  • Music and Playtube App Configuration
  • Log Configuration of Applications
  • Step 6: Add to server.cfg
  1. GKSPHONE v2

Installation

On this page you will find installation instructions for the GKSPHONE V2 version.

PreviousFiveM Asset Escrow SystemNextDocumentation

Last updated 1 month ago

If you are transferring files using FTP transfer your files using program. Filezilla transfers files as corrupted.

If you are switching from v1 to v2, you need to remove the gksphone_* tables in the database.

Step 1: File Location

  • Create a [phone] folder inside the main source file and extract the files in the zip to this folder.

Step 2: Items

Activate unique and useable in qb-core/shared/items.lua

hone = { name = 'phone', label = 'Phone', weight = 700, type = 'item', image = 'phone.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Neat phone ya got there' },
iphone = { name = 'iphone', label = 'iPhone', weight = 1000, type = 'item', image = 'iphone.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Very expensive phone' },


---- For Powerbank item
powerbank = {
	name = 'powerbank', 
	label = 'Powerbank', 
	weight = 200, 
	type = 'item', 
	image = 'powerbank.png', 
	unique = true, 
	useable = true, 
	shouldClose = true, 
	combinable = nil, 
	description = 'To charge the phone'
},

Step 3: Insert SQL Query

Before running the SQL file, make sure to delete all tables starting with gksphone_ in your database.

  • Run the gksphone/gksphonev2.sql file into your database.

Step 4: Framework

Correct "Config.Framework" to esx or qb depending on the framework you are using

Step 5: Serverconfig.lua Configuration

  • You can use any media service you want. The media upload systems we recommend are GKS Media, Fivemerr and Fivemanage.

serverconfig.lua
-- Options: "gksmedia", "fivemanage", "fivemerr", "discord", "customMedia"
Cfg.MediaService = "gksmedia"  

-- Fill in these fields according to the service you selected:
Cfg.AuthTokenImage = ""    -- Token/API/webhook for image sharing
Cfg.AuthTokenAudio = ""    -- Token/API/webhook for audio sharing
Cfg.AuthTokenVideo = ""    -- Token/API/webhook for video sharing

Music and Playtube App Configuration

If you lose your Tebex ID, we will not be able to help you find it.

Log Configuration of Applications

Step 6: Add to server.cfg

Just start the phone file is enough.

-- First we will start the framework, never below
ensure oxmysql
ensure es_extended or qb-core

-- These resources must be started before the phone
ensure your_eyetarget
ensure your_banking
ensure your_inventory
ensure your_housing
ensure your_garages

-- the other scripts don't matter - they can be started before or after no difference

-- The phone system
ensure [phone]

If you are using ox_inventory, follow the steps on the

You must write your gksphone purchase tbx-id in Cfg.TebexTransactionID in serverconfig.lua file. If you don't know tbx-id, check your

For Discord webhook, you only need to enter the Discord webhooks of the applications you want to log in this section of the serverconfig.lua file. For Fivemanage it is enough to have installed

📔
tebex purchase history.
fmsdk
winscp
gksphone/config/config.lua
gksphone/config/serverconfig.lua
gksphone/config/serverconfig.lua
documentation page