# Config

## 📡 GPS Script Configuration

This section explains the config values available in your GPS system.

***

### 🔑 Main Settings

```lua
FRKN = {
    ServerCallbacks = {},
    policeJobName = "police",
    ambulanceJobName = "ambulance",
    panicExport = function()
        exports['frkn-dispatch']:OfficerInDistress()
    end,
    gpsTracker = 'gps_tracker',
    blipRefreshTime = 1000,
    ...
}
```

* **ServerCallbacks** → Internal table for callback storage (used by the script).
* **policeJobName** → The job name string for police (`"police"`).
* **ambulanceJobName** → The job name string for ambulance (`"ambulance"`).
* **panicExport** → Function that defines what happens when a **panic button** is pressed. Here it calls `OfficerInDistress()` from `frkn-dispatch`.
* **gpsTracker** → Item name used as the **GPS tracker device** in the inventory (must match your item config).
* **blipRefreshTime** → Refresh interval (in milliseconds) for updating GPS blip positions.
  * Default: `1000` → 1 second.

***

### 🗺 Blip Sprites

```lua
sprite = {
    dead = 274,
    normal = 1,
    vehicle = 225,
    motorcycle = 226,
    heli = 422,
    boat = 427,
    plane = 423,
}
```

* Defines the blip icons used on the map for different player states/vehicles:
  * **dead** → Player downed/dead blip (`274`).
  * **normal** → Standard player blip (`1`).
  * **vehicle** → Car icon (`225`).
  * **motorcycle** → Motorcycle icon (`226`).
  * **heli** → Helicopter icon (`422`).
  * **boat** → Boat icon (`427`).
  * **plane** → Plane icon (`423`).

***

### 📻 Default Radio Channels

```lua
defaultChannels = {
    { name = "Police", allowedJobs = { "police" }, frequency = 1 },
    { name = "Police", allowedJobs = { "police" }, frequency = 2 },
    { name = "Ambulance", allowedJobs = { "ambulance" }, frequency = 6 },
    { name = "Ambulance", allowedJobs = { "ambulance" }, frequency = 9 },
    { name = "Ambulance & Police", allowedJobs = { "police", "ambulance" }, frequency = 10 }
}
```

* Defines which **radio channels** are available by default.
* **name** → Channel display name.
* **allowedJobs** → Jobs that are allowed to join the channel.
* **frequency** → Radio frequency number.

**Example setup:**

* Police → frequencies 1 & 2.
* Ambulance → frequencies 6 & 9.
* Shared Police & Ambulance → frequency 10.

***

👉 In short:\
This config controls **which jobs can use GPS tracking, what blips they see on the map, how often GPS updates, and which default radio frequencies are available.**


---

# 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.0resmon.org/0resmon/0resmon-1/frkn-resources/frkn-police-job/gps-system/config.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.
