Config

📡 GPS Script Configuration

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


🔑 Main Settings

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

  • 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

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

Last updated