Documentation

On this page you will find the most frequently asked questions about our phone esx version and their answers.

1. Ox_inventory

Add the following to ox_inventory/data/items.lua. If you already have an item called "phone" and "iphone", replace the data.

["phone"] = {
	label = "Phone",
	weight = 190,
	stack = false,
	consume = 0,
	client = {
		export = "gksphone.UsePhoneItem",
		remove = function()
			TriggerEvent("gksphone:client:ItemRemoved", "phone")
		end
	}
},
["iphone"] = {
	label = "iPhone",
	weight = 190,
	stack = false,
	consume = 0,
	client = {
		export = "gksphone.UsePhoneItem",
		remove = function()
			TriggerEvent("gksphone:client:ItemRemoved", "iphone")
		end
	}
},
---- For Powerbank item
["powerbank"] = {
	label = "Powerbank",
	weight = 190,
	stack = false,
	consume = 1,
	client = {
                event = "gksphone:client:powerbank"
	}
},

2. How do I send an ambulance dispatch after die?

local reportMessage = "Report Message"
local reportPhoto = "Image Link" or nil
local job = "ambulance" -- job code
local anonymous = false -- or true

exports["gksphone"]:SendDispatch(reportMessage, reportPhoto, job, anonymous)

3. How to disable an app on phone menu screen?

In the config.json file, you must set show = false to remove any application you want from the home screen.

4. How do I set the visibility of apps by jobs?

You can make the application you want visible to some jobs and invisible to others.

5. How can I change the phone's start apps?

6. How to add filter in Advertising?

To add filters to the Advertising application, you can add filters like the examples below.

7. How do I add other jobs and questions to the job application in the Business application?

In this section, you can organize the jobs to be applied for and the questions to be asked in the job application.

8. How do I add new jobs to Business invoices in Business App?

Here you can add new jobs to commercial invoices in the invoice creation in the business application.

9. How do I set/add jobs use of the Business App?

You need to add a profession and set from which rank the professions can perform the functions in the business app.

All you have to do is copy the attached professions and change their jobname and rank levels.

10. How do I add a job to the Dispatch app?

Here add new jobs to our Dispatch application, you can add new jobs by referring to the examples here.

All you have to do is copy an attached job and edit the job name and job levels of the authorities in the application. Don't forget to enter your workplace coordinates.

11. What are the registercommands on the phone?

RegisterCommand
Function

/phone

Allows you to turn on the phone

/delphone

It is used when the phone prop gets buggy

/twitterverify true/false username

Squawk yellow tick

/blocktwitter true/false

You can block sharing on Squawk

/bantwitter true/false username

You can ban or unlock a squawk user's account

/phonenewnumber id newphonenumber

You can give a person a unique phone number. (The person who is given a private number can use the new number by selecting it from the SIM application)

/adminauth true/false

So you can delete unwanted squawks or ads

/phonechangenumber phoneID oldNumber newNumber

to change a phone number

12. How to fix license error or config.json file?

Check your config.json file. There may be a mistake. You can repair or see your error on this page. https://jsonformatter.curiousconcept.com/

13. How to set E-SIM operator names and package contents?

Open the gksphone/config/config.lua file and change the names of the places indicated by the arrows in the picture below.

Key
Value

name

You can write the package name here

label

You can write the package name here

sms

If the SMS in the package runs out, the fee charged by your bank per SMS

call

If the Call/Min in the package runs out, the fee charged by your bank per SMS

internet

If the Internet/GB in the package runs out, the fee charged by your bank per SMS

newnumber

Fee for ordering a new number from the SIM application

Last updated