📔Installation

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

Step 1: File Location

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

[phone]

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

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

Step 4: Framework

Supports ESX, QB, Qbox There is a standalone file, you can customize it according to your own framework.

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

gksphone/config/config.lua

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", "customMedia"
Cfg.MediaService = "gksmedia"  

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

Music and Playtube App Configuration

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

gksphone/config/serverconfig.lua

Log Configuration of Applications

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 fmsdk installed

gksphone/config/serverconfig.lua

Step 6: Add to server.cfg

Just start the phone file is enough.

-- First we will start the framework, never below
ensure pma-voice
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]

Last updated