# Config File

```lua
Config = {
    Framework = {
        Type = 'qb',              -- qb, esx, none
        ResourceName = 'qb-core', -- qb-core, es_extended,
    },
    Voice = {
        Type = 'pma',               -- pma
        ResourceName = 'pma-voice', -- pma-voice,
    },
    Jobs = {                        -- Use this site to view colors, most of the times, most of the times we are using the 500 variant https://v3.tailwindcss.com/docs/customizing-colors
        ["police"] = { color = "blue", defaultRadio = 1 },
        ["ambulance"] = { color = "red", defaultRadio = 10 },
    },
    Events = {
        ["Server:PlayerLoaded"] = "QBCore:Server:PlayerLoaded", -- if you are using esx, use esx:playerLoaded
        ["Server:OnJobUpdate"] = "QBCore:Server:OnJobUpdate",   -- if you are using esx, use esx:setJob
    },

    Commands = {
        SetCallsign = { -- If you already have this command on your server, please read the README file to make it work on your server
            enabled = true,
            command = "dispatch:setcallsign",
            description = "Sets your callsign",
            args = { { name = "callsign", help = "The callsign you want to set" } }
        },
        UseAlertPanel = { -- The command to toggle the alert panel on and off, can't be disabled
            command = "dispatch:alertpanel",
            description = "Toggles on and off the usage of the alert panel",
            args = {},
        }
    },
    DefaultAlerts = { -- Default alerts provided in open/client/cl_defaultalerts.lua,
        Shooting = {
            enabled = true,
            cooldown = 5 -- The cooldown in seconds before the alert can be triggered again
        },
        Call911 = {
            enabled = true,
            cooldown = 30 -- The cooldown in seconds before the alert can be triggered again
        }
    },
    Locales = { -- Locales For UI ONLY
        currentUnits = "Current Units",
        addUnit = "Add Unit",
        createUnit = "Create Unit",
        createUnitDesc = "Create a new unit to organize your officers",
        callsign = "Callsign",
        vehicle = "Vehicle",
        name = "Name",
        radio = "Radio (Optional)",
        car = "Car",
        helicopter = "Helicopter",
        boat = "Boat",
        Plane = "Plane",
        create = "Create",
        alertPanel = "Alert Panel",
        noAlets = "No Alerts Found",
        respond = "Respond",
        changeAlerts = "Change Alert",
        drag = "Drag",
    }
}

```


---

# 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://mr-scripts.gitbook.io/mr-scripts-docs/scripts/advanced-dispatch/config-file.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.
