Create Call
Generates a new dispatch / 911 call directly in the MDT Dispatch board system. This triggers alarms, map blips, and notifications for all on-duty units.
Export Syntax
local callId = exports['kartik-mdt']:CreateCall(data, callerSource)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | table | Yes | Dispatch call data schema (detailed below) |
callerSource | number or nil | No | Player server ID of the caller (attaches them to the incident log) |
Schema for data
{
title = string, -- e.g. "Shots Fired"
description = string, -- Call details
coords = vector3, -- World coordinates of the incident
isPanic = boolean, -- Toggles panic alert (red flashing UI + alarm sound)
job = string|table, -- Recipient job(s) e.g. "police" or {"police", "ems"}
street = string, -- Optional street location description
vehicle = string, -- Optional vehicle model name
plate = string, -- Optional vehicle plate
person = string, -- Optional suspect or caller name
}Return Value
- Returns
number: The unique ID of the created dispatch call.
Example Usage
local data = {
title = "Store Robbery",
description = "Silent alarm triggered at 24/7 store",
coords = vector3(24.5, -1345.2, 29.4),
isPanic = false,
job = "police",
street = "Innocence Blvd"
}
local callId = exports['kartik-mdt']:CreateCall(data)
print(string.format("Created dispatch call ID: %d", callId))