📔Installation

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

If you are transferring files using FTP transfer your files using winscp 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

If you are using ox_inventory, follow the steps on the documentation page

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

phone = { 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' },

Step 3: Insert SQL Query

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

Step 4: Serverconfig.lua Configuration

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

Write the following code in the relevant places in the serverconfig.lua file and edit only the WriteYourTokenHere section.

Cfg.MediaServices = {
    ImgService = {
        url = "https://servicemedia.gkshop.org/mediau",
        field = "gks_image",
        AuthHeader = "GKSHOP-Secret",
        AuthToken = "WriteYourTokenHere",
        returnIndex = "link"
    },
    AudioService = {
        url = "https://servicemedia.gkshop.org/mediau",
        field = "gks_audio",
        AuthHeader = "GKSHOP-Secret",
        AuthToken = "WriteYourTokenHere",
        returnIndex = "link"
    },
    VideoService = {
        url = "https://servicemedia.gkshop.org/mediau",
        field = "gks_video",
        AuthHeader = "GKSHOP-Secret",
        AuthToken = "WriteYourTokenHere",
        returnIndex = "link"
    },
}

Step 5: Config.lua Configuration

Code BlockValueExplanation

Config.MetaItem

true or false

Set to false to disable Unique (Meta) Item

Config.ChargeEnable

true or false

Set to false to disable charging

Config.JOBDispatch

jobname

It should be done like the current police

Step 6: Polyzone

If you want to use the phone's signal feature, don't forget to use the polyzone script.

Step 7: Server.cfg Configuration

Just start the phone file is enough.

ensure [phone]

Last updated