Prioritized Codes
Category, priority and label per code.
coe_dispatchEmergency Dispatch
Calls and alerts for on-duty police and EMS, with priority and blips
coe_corecoe_loggingcoe_businesses
coe_dispatch
4 exports · 4 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Call dispatch for police and EMS on top of coe_businesses: whoever is on duty in a business of the call category receives it. Each code (robbery, shots_fired, person_down...) sets category, priority and label; nearby identical reports merge, and the call becomes a blip with an alert. Citizens ask for help with /chamado; crews use /chamados, /atender and /encerrar.
No parallel player list, with radius and time deduplication: ten reports of the same shootout become one call.
Category, priority and label per code.
Nearby reports merged into one call.
Blip flashes on priority 1, route on accept.
Police, EMS, heists and races open calls.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_dispatch']:Accept(source, id)
→ any
Export server Accept (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
id | any |
local result = exports['coe_dispatch']:Accept(source, id)exports['coe_dispatch']:Active(source)
→ any
Export server Active (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
local result = exports['coe_dispatch']:Active(source)exports['coe_dispatch']:Alert(code, x, y, z)
→ any
Submits an automatic alert from another resource: Alert(code, x, y, z). Returns the alert ID or { error }.
| Parameter | Type |
|---|---|
code | any |
x | any |
y | any |
z | any |
local result = exports['coe_dispatch']:Alert(code, x, y, z)exports['coe_dispatch']:Close(source, id)
→ any
Export server Close (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
id | any |
local result = exports['coe_dispatch']:Close(source, id)/atender <id>
Accepts a dispatch call and sets the route (requires being on duty in the category).
/chamado <codigo>
Asks police or EMS for help at your position (help_police, help_ems).
/chamados
Lists the calls of your category by urgency.
/encerrar <id>
Closes a dispatch call.