Exports
Dispatch
Server

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

  • data table
  • source number — player the alert is filed from
  • code string — defaults to 10-00
  • title string
  • message string
  • coords vector3 — optional
  • jobs string|string[] — defaults to police
  • priority string — optional
  • blip table — { 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
Join Our Discord