Codesign Dispatch
CD Dispatch (cd_dispatch) is a police dispatch for FiveM ESX and QBCore servers. Alerts from your scripts appear in a small, movable UI and in a large map UI, with blips, keybinds and exports. Jobs are grouped, so for example police and sheriff see each other.
Features
- Small UI (movable): total calls, responding units, notification title and message, distance to the call, quick respond with waypoint.
- Large UI with day and night map.
- Optional modules: radio channels, duty system, blips, callsigns, dispatcher, job call commands and police alerts.
- Panic button and replies to callers.
- Add or replace alerts in your own scripts with the provided code snippet (client to server recommended).
- Job groups set in
Config.AllowedJobs(police, ambulance and mechanic by default). - Choice of database script (oxmysql, mysql or ghmattimysql) and notification system; custom locales.
Default keys (editable)
U = toggle small UI · L = open large UI · G = respond · ←/→ = cycle · ↑ = ping · ↓ = panic
Commands and exports
Core commands: /dispatchsmall, /dispatchlarge, /respond, /movemode, /panic, /reply, /dispatchtest, /dispatchping
Exports (examples): GetPlayerInfo() · GetPlayerNotifications() · GetPlayersDispatchData() · GetConfig()
Requirements
- ESX or official QBCore (no vRP)
- oxmysql, mysql-async or ghmattimysql
- FiveM server build 4752 or newer
Installation
- Copy the
cd_dispatchfolder into your resources; the folder must stay namedcd_dispatch. - Set framework, database and notifications in
configs/config.lua. The manifest loads@es_extended/imports.luaand oxmysql by default; adjust these lines for QBCore or another database script. - Insert the SQL automatically (
Config.AutoInsertSQL) or runREAD_ME_AFTER_PURCHASING/SQL_main.sql. - Add
ensure cd_dispatchto your server.cfg below your framework. - Set
Config.EnableTestCommand = falsefor live use.
Common pitfalls
- SQL default/unknown column errors: use the provided SQL or adjust the column types.
- NUI “drawImage” error: use supported blip colours.
- ox_lib nil: uncomment it in
fxmanifest.luawhen auto-detect picks it.