LuckyScripts / Pulsar DispatchFIVEM FIELD GUIDE
External API & exports
External API & exports guide for LuckyScripts Pulsar Dispatch.
Other resources can interact with the dispatch system via server-side exports:
-- Create a dispatch from an external resource (e.g., bank heist script)
exports['pulsar-dispatch']:CreateDispatch(0, {
code = '211',
codeLabel = 'Bank Robbery',
priority = 1,
location = 'Pacific Standard Bank',
district = 'Alta',
coords = vector3(235.0, -895.0, 30.0),
description = 'Silent alarm triggered.',
callerName = 'Bank Security',
channel = 1,
meta = { alarmType = 'silent' }
})
-- Get all active dispatches (returns table)
local dispatches = exports['pulsar-dispatch']:GetActiveDispatches()
-- Get all active units
local units = exports['pulsar-dispatch']:GetActiveUnits()
-- Assign a unit to a dispatch
exports['pulsar-dispatch']:SendUnitToDispatch('DSP-250619-1234', '3')
-- Trigger the Panic Button
exports['pulsar-dispatch']:TriggerPanicButton()Note: source = 0 means "system-triggered" — no source-specific event is sent.
LuckyScripts Pulsar Dispatch · Match configuration examples to your downloaded release.
Need a hand? Read the support guide ↗