Dispatch System

How to trigger the Event:

local coords = GetEntityCoords(PlayerPedId())
local zone = exports["b-dispatch"]:GetZone(coords)
-- Job is depending on your framework. Our example is for esx
local targetJob = ESX.PlayerData.job.name

TriggerServerEvent("bdev:server:registerDispatch", coords, zone, targetJob)

Last updated

Was this helpful?