Skip to main content

Dispatch — Client

GetResourceName

Returns the dispatchDispatchSystem that sends alerts and calls to emergency services (police, EMS, fire) when crimes or events occur. resource name.

local name = Bridge.Dispatch.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the DispatchDispatchSystem that sends alerts and calls to emergency services (police, EMS, fire) when crimes or events occur. module resource. Used for internal identification. Always returns "default" for the built-in DispatchDispatchSystem that sends alerts and calls to emergency services (police, EMS, fire) when crimes or events occur. module.

SendAlert

Sends a dispatchDispatchSystem that sends alerts and calls to emergency services (police, EMS, fire) when crimes or events occur. alert from the client.

Bridge.Dispatch.SendAlert(data)
ParameterTypeDescription
datatableAlert data table

Alert Data Format

{
title = 'Store Robbery',
message = 'A store is being robbed!',
job = 'police',
coords = vector3(x, y, z),
blip = {
sprite = 161,
colour = 1,
scale = 1.0,
flash = true,
time = 30000
}
}