Dispatch — Client

GetResourceName

Returns the dispatch resource name.

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

Description: Returns the name of the Dispatch module resource. Used for internal identification. Always returns "default" for the built-in Dispatch module.

SendAlert

Sends a dispatch 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
    }
}