Imperial Emergency API & Exports
The ImperialEmergency module allows a FiveM server to create and manage 911 calls, panic signals, call notes, unit status, and vehicle lookups. These functions use ImperialCAD's secure backend API.
⚙️ Setup
Add the following to your server.cfg:
setr imperial_community_id "YOUR_COMMUNITY_ID"
set imperialAPI "YOUR_API_SECRET"Enable debug output:
Config.debug = true📢 Exports & Examples
🔊 Create911Call(data, callback)
Create911Call(data, callback)Creates a standard 911 call. This includes flashing lights and audio in the LEO MDC.
Required Fields
name
string
Caller name
street
string
Street name
crossStreet
string
Cross street
postal
string
Postal code
city
string
City
county
string
County
info
string
Call description
Example
Example Response
❌ DeleteCall(data, callback)
DeleteCall(data, callback)Deletes an active call using its callId.
Required Fields
callId
string
discordId
string
Example
Example Response
✅ CreateCall(data, callback)
CreateCall(data, callback)Creates a call manually (non-911) with custom status and priority.
Required Fields
users_discordID
string
street
string
crossStreet
string
postal
string
city
string
county
string
info
string
nature
string
status
string
priority
number
Example
Example Response
➕ AttachCall(data, callback)
AttachCall(data, callback)Attaches a unit to an active call.
Required Fields
users_discordID
string
callnum
number
Example
✍️ NewCallNote(data, callback)
NewCallNote(data, callback)Adds a note to the user's currently assigned call.
Required Fields
users_discordID
string
description
string
Example
❌ Booter(data, callback)
Booter(data, callback)Sets a unit off-duty (removes from all assignments).
Required Fields
users_discordID
string
Example
⚠️ Panic(data, callback)
Panic(data, callback)Triggers a panic alert from a unit.
Required Fields
users_discordID
string
street
string
postal
string
Example
❎ ClearPanic(callback)
ClearPanic(callback)Clears an active panic alert for your community.
Example
🔢 CheckPlate(data, callback)
CheckPlate(data, callback)Checks a plate in CAD records.
Required Fields
plate
string
Example
Example Response
🔗 API Reference
All API's will use the same format of "https://imperialcad.app/api/1.1/wf/" and then the provided API Endpoint as provided below.
TYPE https://imperialcad.app/api/1.1/wf/<API_GOES_HERE>
POST
Create911Call
911
POST
CreateCall
CallCreate
POST
DeleteCall
CallDelete
POST
AttachCall
AttachCall
POST
NewCallNote
callnote
POST
Booter
offduty
POST
Panic
panic
POST
ClearPanic
clearpanic
POST
CheckPlate
checkplate
🔐 API Authorization
All POST endpoints require the following header:
👉 License
© Imperial Solutions. Unauthorized distribution or use is prohibited.
Last updated
Was this helpful?