# Config

shared/config.lua

```lua
Config = {}

--[[====[ SPARK-DEVELOPMENTS ]====]]
-- Thank you for buying this resource!
-- DOCS - https://spark-developments.gitbook.io

--[[====[ GENERAL SETTINGS ]====]]
Config.HideWhenNoAlerts = false -- Hide the dispatch when there are no alerts

Config.Jobs = {'police', 'ambulance'} -- Which jobs will be able to use the dispatch?

--[[====[ ALERT SOUND SETTINGS ]====]]
Config.AlertSound = { -- Play notification sound with each alert
  enabled = true,
  name = 'police_notification', -- Don't touch if you don't know what you are doing.
  ref = 'DLC_AS_VNT_Sounds' -- Don't touch if you don't know what you are doing.
}

--[[====[ ALERT BLIP SETTINGS ]====]]
Config.AlertBlip = {
  enabled = true, -- Will the dispatch show up on the map?
  sprite = 161,
  scale = 1.2,
  color = 1
}

--[[====[ ALERT COMMANDS SETTINGS ]====]]
Config.AlertCommands = { -- Define alert commands that players can use to request assistance
  {
    command = '911',
    jobs = {'police'}, -- Which jobs receive the alert?
    code = '911',
    anon = false
  }
}

--[[====[ BUILT IN ALERTS SETTINGS ]====]]
Config.GunshotAlert = {
  enabled = true, -- Will shooting trigger an alert?
  cooldown = 30000, -- Cooldown between gunshots
  code = '10-13',
  displayWeapon = true, -- Display weapon type (light/heavy)?
  jobs = {'police', 'ambulance'}, -- Which jobs receive the alert?
  whitelisted_jobs = {'police'}, -- Which jobs will not trigger the alert?
  whitelisted_weapons = { -- Weapons which will not trigger the alert, such as stun guns
    ['WEAPON_FLARE'] = true,
    ['WEAPON_FLAREGUN'] = true,
    ['WEAPON_FIREEXTINGUISHER'] = true,
    ['WEAPON_PETROLCAN'] = true,
    ['WEAPON_STUNGUN'] = true
  }
}

Config.VehicleTheft = {
  enabled = true, -- Will stealing vehicles trigger an alert?
  code = '10-35',
  displayColor = true, -- Show the vehicle's color?
  displayPlate = true, -- Show vehicle plate?
  jobs = {'police'}, -- Which jobs receive the alert?
  whitelisted_jobs = {} -- Which jobs will not trigger the alert?
}
```


---

# 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://spark-developments.gitbook.io/dev/roleplay/dispatch/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.
