> For the complete documentation index, see [llms.txt](https://mango-5m.gitbook.io/mango5m-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mango-5m.gitbook.io/mango5m-docs/resources/mango-dispatch.md).

# Mango Dispatch

Standalone dispatch for FiveM - call alerts, the quick call window, /911 and a full responder board that any resource can write to.

**Mango Dispatch** is a complete dispatch layer for your server: it raises calls, alerts every unit on duty, tracks who is responding, marks who has Primary, and clears calls Code 4 - without a database, without NUI focus, and without a single per-frame loop.

<figure><img src="https://3694989814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6edDnCRamvDxPx0AsLch%2Fuploads%2FGFH2U2NW1vOoKXvb6q7j%2Falert.gif?alt=media&#x26;token=41fd9843-c3fd-4966-8b61-08cd44d8122b" alt="A call comes in - every on-duty unit gets the card, with one-key accept or decline"><figcaption><p>A call comes in - every on-duty unit gets the card, with one-key accept or decline</p></figcaption></figure>

It is deliberately standalone. Any resource - a robbery script, a phone, a prison, a mechanic job - can raise a call with one export, and anything can read the whole board back out.

{% hint style="info" %}
**No database.** Calls live in memory for the lifetime of the server session. Every open call is closed automatically on restart. Nothing to install, nothing to migrate, nothing to clean up.
{% endhint %}

### The loop, in four keys

{% stepper %}
{% step %}

### A call comes in

An alert card slides into the corner with the code, location, caller and your distance. Nothing takes focus - keep driving.
{% endstep %}

{% step %}

### Press `Y` to respond

You are on the call. A blip and GPS route appear, and the call window shows every unit rolling with you.
{% endstep %}

{% step %}

### Work it together

First unit on scene is **Primary**; `Tab` hands it over. More units accept from `F7` and stack up on the same call.
{% endstep %}

{% step %}

### Press `Backspace` when it is done

Code 4. The call clears for everyone, routes disappear, and the board moves on.
{% endstep %}
{% endstepper %}

### What your units see

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Alert cards</strong></td><td>A stack in the corner with the code, title, location, distance, caller and tags. Accept or decline with one key.</td></tr><tr><td><strong>The quick call window</strong></td><td><code>F7</code> opens the four newest open calls. Arrow keys move the highlight, one key responds.</td></tr><tr><td><strong>Responder view</strong></td><td>The moment you respond, the window switches to the unit list for that call and shows who has Primary.</td></tr><tr><td><strong>Route on the map</strong></td><td>A blip and a GPS route to the call you are on, cleared the moment you cancel or clear it.</td></tr></tbody></table>

### Start here

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Getting Started</strong></td><td>Install it, ensure it in the right order, pick the jobs that get alerts.</td><td><a href="/mango5m-docs/resources/mango-dispatch/getting-started.md">Getting Started</a></td></tr><tr><td><strong>Configuration</strong></td><td>Every setting in <code>config/config.lua</code>, explained with its default.</td><td><a href="/mango5m-docs/resources/mango-dispatch/configuration.md">Configuration</a></td></tr><tr><td><strong>Features</strong></td><td>Alerts, the call window, responding, Primary, Code 4, 911 and the HUD editor.</td><td><a href="/mango5m-docs/resources/mango-dispatch/features.md">Features</a></td></tr><tr><td><strong>Developer Guide</strong></td><td>Exports, events, call fields and how to wire your own resources in.</td><td><a href="/mango5m-docs/resources/mango-dispatch/developer-guide.md">Developer Guide</a></td></tr><tr><td><strong>Reference</strong></td><td>Commands, styling, performance notes and troubleshooting.</td><td><a href="/mango5m-docs/resources/mango-dispatch/reference.md">Reference</a></td></tr></tbody></table>

### At a glance

|                |                                                              |
| -------------- | ------------------------------------------------------------ |
| Frameworks     | ESX, QBCore, Qbox, or your own via a bridge file             |
| Dependencies   | None. Optional: `mango_notify` or `ox_lib` for notifications |
| Database       | None - calls are in memory                                   |
| NUI focus      | Only in `/dispatchhud`. Never during normal play             |
| Editable files | `config/`, `bridge/`, `web/css/`, `web/sounds/`              |
