Browse docs
Emergency Dispatch
Public client-side export for creating Emergency Dispatch incidents through sky_jobs_base.
Emergency Dispatch
Use this export when a client resource needs to report an incident to one or more jobs. The caller returns immediately and the server validates and creates the incident asynchronously.
With
Config.Dispatch.enabled = true, the export creates a persistent Dispatch App incident. When
the master switch is disabled, the same integration automatically uses the legacy map dispatch and
top-center notification.createDispatch(title, message, coords, jobs, meta)
| Argument | Type | Description |
|---|---|---|
title | string | Required incident title. |
message | string | Incident description. |
coords | vector3 | table | Required world position. Tables use { x, y, z }. |
jobs | string | string[] | One job name or an array of target jobs. |
meta | table? | Optional sourceId and category values. |
Returns: boolean — always true. Creation is handled by the server after the export returns.
client.lua
exports["sky_jobs_base"]:createDispatch(
"Traffic Accident",
"Vehicle collision on Route 68",
GetEntityCoords(PlayerPedId()),
{ "ambulance", "police" },
{
sourceId = "traffic-camera-12",
category = "accident"
}
)
The server determines the calling player. Do not send a player source through client metadata.
For server-created incidents and duplicate handling, see Server Exports: Emergency Dispatch.