API
Exports available to other resources.
lua
-- Create a new dispatch and notify every online responder for that job. Returns the new dispatch id.local id = exports.more_dispatch:CreateDispatch("ambulance", "Shooting", "Person down near the docks.", GetEntityCoords(GetPlayerPed(source)), "Lucio Loco", "male") -- Mark a dispatch as closed, e.g. once another script's task for it is done.exports.more_dispatch:CloseDispatch(id, playerId) -- Dismiss/remove a dispatch entirely (e.g. it turned out to be a false alarm).exports.more_dispatch:DeleteDispatch(id, playerId) -- Get all currently open/accepted dispatches.local dispatches = exports.more_dispatch:GetDispatches()Last updated