zephyr_dispatchOverview

zephyr_dispatch

FieldValue
Version0.2.0
AuthorVexy
StatusStable

Overview

zephyr_dispatch is the police and EMS dispatch system for Zephyr. It provides a live call list, BOLO management, unit tracking, and a job-chat panel via an in-game NUI tablet. It is compatible with the ps-dispatch event API, allowing third-party scripts to create calls without modification.

Dispatch calls are broadcast only to on-duty players whose job matches the targeted jobs on that call. Police and EMS calls are kept separate by default. BOLOs are shared with zephyr_mdt bidirectionally.

Features

ModuleDescription
Call ListLive list of active calls with priority, location, responding units, notes.
BOLO ManagerCreate, resolve, and sync BOLOs with zephyr_mdt.
Unit TrackerReal-time map of all on-duty officers with callsign, status, and location.
Pursuit TrackingMoving blip following the primary unit for active pursuits (10-80).
Job ChatIn-tablet job-scoped chat with configurable channels.
911 / 311Player commands create calls. LB Phone integration creates a reply thread.
Auto-AlertsConfigurable automatic calls for shots fired, explosions, etc.
PersistenceCalls and BOLOs survive resource restarts (dispatch_store.json).
ps-dispatchFull compatibility layer — scripts that use ps-dispatch work without changes.

Dependencies

ResourceRequiredNotes
ox_libYesUI, keybinds, and commands
qb-core / qbx_coreYesFramework bridge
zephyr_mdtOptionalBidirectional BOLO sync
lb-phoneOptional911 Services reply thread integration
oxmysqlOptionalRequired only if lb-phone is used

Configuration highlights

Key settings in config.lua:

KeyDefaultDescription
Config.DispatchJobspolice, etc.Jobs that appear in the unit tracker and receive calls.
Config.OnDutyOnlytrueOnly on-duty players receive alerts and see the unit list.
Config.AlertTime10Seconds an alert toast stays on screen.
Config.MaxCallList50Maximum calls stored in the active list.
Config.AutoClearMinutes5Auto-clear unattended calls after this many minutes.
Config.PersistencePersistBolostrueKeep BOLOs across resource restarts.
Config.PersistencePersistCallsfalseKeep calls across resource restarts.
Config.ForceOnDutyJobspolice, ambulanceTreat these jobs as always on-duty.

Permissions

The dispatch tablet is opened with a configurable keybind (default .) or via the opendispatch command. Any player whose job is in Config.DispatchJobs and who is on duty can access it.