Description
belair_edispatch is a custom app for RoadPhone Pro that brings a fully integrated emergency call system to your ESX server. When opened, the app dynamically checks via ESX server callback which emergency units are currently on duty and displays the corresponding call buttons — powered by EmergencyDispatch.
No police on duty? Button is hidden. No units at all? The app shows a clear "no unit on duty" message. One tap places the call and the phone closes automatically.
Features
- Dynamic buttons — Police and/or Fire buttons appear only when the respective unit is on duty (via
emergencydispatch:getControlList) - EmergencyDispatch integration — calls are routed through EmergencyDispatch (
emergencydispatch:emergencycall:new), not through RoadPhone - Auto-close phone — phone closes automatically after placing a call (configurable)
- Double-tap protection — configurable cooldown prevents accidental duplicate calls
- Fully configurable — job mappings, button labels, accent colors, message text, call mode (client/server event)
- Client-only — no server.lua, no database required
- ESX compatible — supports both modern ESX exports and legacy esx:getSharedObject
- Debug mode — built-in console logging for easy troubleshooting
Dependencies
- es_extended (ESX Legacy)
- roadphone (RoadPhone Pro)
- emergencydispatch (EmergencyDispatch)
Installation
- Copy resource into your
resources/folder (folder name must staybelair_edispatch) - Add
ensure belair_edispatchtoserver.cfg(after es_extended and roadphone) - Register the app in
roadphone/public/static/config/config.jsonunder AppStore (see README) - Restart server