> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_vehiclekeys/dispatch.md).

# Dispatch

Police Dispatch Integrations

**AK47 Vehicle Keys** (`ak47_vehiclekeys`) comes out of the box with zero-configuration automatic detection for all leading FiveM police dispatch and alert systems.

Whenever a player attempts to lockpick or hotwire a vehicle, if alerts are enabled in `config.lua`, the script will automatically check which dispatch resource is active on your server and dispatch a 10-60 vehicle theft / tampering call with vehicle details, plate number, street location, and map blips.

***

### Supported Dispatch Systems

The dispatch bridge automatically integrates with any of the following resources if started:

| Dispatch Resource            | Resource Name                       | Auto-Detected |
| ---------------------------- | ----------------------------------- | ------------- |
| **Quasar Dispatch**          | `qs-dispatch`                       | Yes           |
| **Project Sloth Dispatch**   | `ps-dispatch`                       | Yes           |
| **Codesign Dispatch**        | `cd_dispatch` / `cd_dispatch3d`     | Yes           |
| **Core Dispatch**            | `core_dispatch`                     | Yes           |
| **RCore Dispatch**           | `rcore_dispatch`                    | Yes           |
| **OP Dispatch**              | `op-dispatch`                       | Yes           |
| **ATY Dispatch**             | `aty_dispatch`                      | Yes           |
| **Origen Police / Dispatch** | `origen_police` / `origen_dispatch` | Yes           |
| **TGiann MDW & Dispatch**    | `tgiann-mdw` / `tgiann-dispatch`    | Yes           |
| **TK Dispatch**              | `tk_dispatch`                       | Yes           |
| **Waypoint / Project Error** | `wf-alerts`                         | Yes           |
| **LB Phone (Job Alerts)**    | `lb-phone`                          | Yes           |
| **Default Built-in Alert**   | `ak47_vehiclekeys` native           | Fallback      |

***

### Customizing Dispatch Calls

You can modify or add additional dispatch logic in [`custom/client/dispatch.lua`](file:///f:/Fivem%20Work/%5BAsset-Link%5D/%5Bmulti-framework%5D/ak47_vehiclekeys/custom/client/dispatch.lua).

The two main dispatch functions in `dispatch.lua` are:

1. `HotwireDispatch(vehicle)` - Dispatches an alert when hotwiring starts.
2. `LockpickDispatch(vehicle)` - Dispatches an alert when lockpicking starts.

#### Config Options

In `config.lua`, you can adjust the frequency and behavior of dispatch alerts:

```lua
Config.HotwireAlert = {
    enable = true,       -- Set false to disable hotwire police alerts
    chance = 70,         -- % chance police are alerted on hotwire
    playernotify = true, -- Notify player if someone reported the vehicle theft
}

Config.LockPickAlert = {
    enable = true,       -- Set false to disable lockpick police alerts
    chance = 70,         -- % chance police are alerted on lockpick
    playernotify = true, -- Notify player if someone reported the lockpicking
}
```
