# Documentation

## 1. Ox\_inventory&#x20;

{% hint style="info" %}
Add the following to `ox_inventory/data/items.lua`. If you already have an item called `"phone" and "iphone"`, replace the data.
{% endhint %}

```lua
["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? <a href="#how-do-i-send-an-ambulance-dispatch-after-die" id="how-do-i-send-an-ambulance-dispatch-after-die"></a>

{% hint style="danger" %}
The sample code below is adapted for esx\_ambulancejob only If you have a different script, you have to adapt it yourself.
{% endhint %}

{% hint style="success" %}
Find the `SendDistressSignal()` function in **esx\_ambulancejob/client/main.lua** and replace it with the following code.
{% endhint %}

```lua
function SendDistressSignal()
    local label = "Emergency aid notification"
    local job = "ambulance"
    exports["gksphone"]:SendDispatch(label, nil, job, false)
end
```

## **3. How to disable an app on phone menu screen?** <a href="#how-to-disable-an-app-on-phone-menu-screen" id="how-to-disable-an-app-on-phone-menu-screen"></a>

{% hint style="info" %}
In the config.json file, you must set show = false to remove any application you want from the home screen.
{% endhint %}

<figure><img src="/files/Ys5K6bCekywe6uXOM8rj" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

## 4. How do I set the visibility of apps by jobs? <a href="#how-do-i-set-the-visibility-of-apps-by-jobs" id="how-do-i-set-the-visibility-of-apps-by-jobs"></a>

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

{% hint style="success" %}
To make it visible, you must add it to the allowjob section as in the example below.
{% endhint %}

{% hint style="danger" %}
To make it invisible, you must make the same addition to the blockedjobs section.
{% endhint %}

<figure><img src="/files/yZOMaavGo3NvlUoNMFt0" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

## 5. How can I change the phone's start apps? <a href="#how-can-i-change-the-phones-start-apps" id="how-can-i-change-the-phones-start-apps"></a>

{% hint style="success" %}
In order for an application to be available on the phone by default without having to install it from the App Gallery, startapp = true.
{% endhint %}

{% hint style="danger" %}
If you want an application not to be startapp, you should set it to " false ".
{% endhint %}

<figure><img src="/files/vjlYkaw6CesbQjFFVoJS" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

## 6. How to add filter in Advertising? <a href="#how-to-add-filter-in-a-dvertising" id="how-to-add-filter-in-a-dvertising"></a>

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

{% hint style="danger" %}
The order of the categories you write should be "jobname: filtername".
{% endhint %}

<figure><img src="/files/F6mnsoVlKQjxvO6glbPc" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

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

{% hint style="danger" %}
In the JobApplication section, your addition format should be "jobname: visiblename"
{% endhint %}

<figure><img src="/files/6MPx2cSIHMp55MbzAZkG" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

## 8. How do I add new jobs to Business invoices in Business App? <a href="#how-do-i-add-new-jobs-to-business-invoices-in-business-app" id="how-do-i-add-new-jobs-to-business-invoices-in-business-app"></a>

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

{% hint style="danger" %}
In the JobApplication section, your addition format should be "jobname: visiblename"
{% endhint %}

<figure><img src="/files/OXctqOYzubM9CegfhbQN" alt=""><figcaption><p>gksphone\config\config.json</p></figcaption></figure>

## 9. How do I set/add jobs use of the Business App? <a href="#how-do-i-set-add-jobs-use-of-the-business-app" id="how-do-i-set-add-jobs-use-of-the-business-app"></a>

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

{% hint style="info" %}
All you have to do is copy the attached professions and change their jobname and rank levels.
{% endhint %}

<figure><img src="/files/cbbk8BX3KXweJlMEJPc1" alt=""><figcaption><p>gksphone\config\config.lua</p></figcaption></figure>

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

{% hint style="info" %}
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.
{% endhint %}

<figure><img src="/files/VAoncSCVvBq2k6dXCMxe" alt=""><figcaption><p>gksphone\config\config.lua</p></figcaption></figure>

{% hint style="danger" %}
You should write the icon image of the job you added as logo-jobname in the gksphone\html\img\jobs\ folder. This jobname must be the jobname you wrote in the config.lua file!
{% endhint %}

<figure><img src="/files/gALQyhj4pFLbT96vTWep" alt=""><figcaption><p>gksphone\html\img\jobs\</p></figcaption></figure>

## 11. What are the registercommands on the phone? <a href="#what-are-the-registercommands-on-the-phone" id="what-are-the-registercommands-on-the-phone"></a>

| 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?** <a href="#how-to-fix-license-error-or-config.json-file" id="how-to-fix-license-error-or-config.json-file"></a>

{% hint style="info" %}
Check your config.json file. There may be a mistake. You can repair or see your error on this page. <https://jsonformatter.curiousconcept.com/>
{% endhint %}

## 13. How to set E-SIM operator names and package contents? <a href="#how-to-set-e-sim-operator-names-and-package-contents" id="how-to-set-e-sim-operator-names-and-package-contents"></a>

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

<figure><img src="/files/6PRo9IPfap3ZV3lN7E9D" alt=""><figcaption><p>gksphone/config/config.lua</p></figcaption></figure>

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

{% hint style="danger" %}
After the operator names are changed, you need to edit the operator names in the package names!

Editing the package contents is your own personal preference.
{% endhint %}

<figure><img src="/files/M86BiuzPQU1eImFty82T" alt=""><figcaption><p>gksphone/config/config.lua</p></figcaption></figure>

{% hint style="danger" %}
The places marked with arrows must be the same as the operator names you edited, marked with arrows in the first picture. Package names, prices and contents are your own choice.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gkshop.org/gksphone-v1/gksphonev2/documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
