📔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.

Cfg.MediaServices = {
    ImgService = {
        url = "WriteYourDiscordWebhook", --Write Discord Webhook here.
        field = "file",
        AuthHeader = "",
        AuthToken = "",
        returnIndex = "attachments.0.url"
    },
    AudioService = {
        url = "WriteYourDiscordWebhook", --Write Discord Webhook here.
        field = "file",
        AuthHeader = "",
        AuthToken = "",
        returnIndex = "attachments.0.url"
    },
    VideoService = {
        url = "WriteYourDiscordWebhook", --Write Discord Webhook here.
        field = "file",
        AuthHeader = "",
        AuthToken = "",
        returnIndex = "attachments.0.url"
    },
}

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