Server
source is required for cd_dispatch, cd_dispatch3d, ps-dispatch, bub-mdt, and piotreq_gpt. Coords fall back to that player's ped when omitted. wasabi_mdt, redutzu-mdt, and bub-mdt ignore jobs. linden_outlawalert and emergencydispatch only use the message and coords.
SendDispatch
Parameters
datatablesourcenumber— player the alert is filed fromcodestring— defaults to10-00titlestringmessagestringcoordsvector3— optionaljobsstring|string[]— defaults topoliceprioritystring— optionalbliptable—{ sprite, color, scale, length }
Returns
boolean
Example
local sent = Bridge.SendDispatch({
source = source,
code = '10-31',
title = 'Store robbery',
message = 'A clerk triggered the alarm.',
jobs = { 'police' },
priority = 'high',
blip = { sprite = 161, color = 1, scale = 1.0, length = 5 },
})
if not sent then
Bridge.Notify(source, { description = 'Dispatch failed', kind = 'error' })
end