π¨ Dispatch Alert
π MDT Alert System β Server Side Trigger
π Event: kartik-mdt:server:sendDispatchNotification
kartik-mdt:server:sendDispatchNotification
β
Usage Example (Server Side)
π¦ Payload Structure
AlertData
(Table)
AlertData
(Table)title
string
β Yes
The title shown in the dispatch alert.
code
string
β Yes
The alert code (e.g., 10-71, 10-50).
description
string
β Yes
A short description of whatβs happening.
location
string
β Yes
Name of the street/location for the alert.
x
, y
, z
number
β Yes
World coordinates for the alert.
sound
string
β No
File name of the sound from sounds/
folder. Default is "dispatch"
.
type
string
β No
Type of alert: "Alert"
or "Call"
. Default is "Alert"
.
person
PersonData
β No
Details of the person involved.
weapon
WeaponData
β No
Details of the weapon involved.
vehicle
table/number
β No
Vehicle entity or data.
blip
BlipData
β No
Blip configuration for map.
jobs
table
β No
Jobs to notify. Example: { police = true, ems = true }
π§ Tips
Use this from server-side scripts where an alert should be triggered due to an event (e.g., shooting, car theft, panic button).
The
vehicle
field can be a numeric vehicle entity ID or a custom table with preformatted data.Use
blip.length
to auto-remove the blip after a set number of minutes.
π Related Export
You can also use the client-side export:
But for server-side, always use:
Last updated