Sending Dispatch

In order to send the dispatch, you must add our code snippet to your resource.

For example: You want the dispatch to be sent via ambulance job for all ambulance workers after player dies. First of all, go to esx_ambulancejob and find where the distress signal is triggered (client/main.lua:195), and replace that function with our code snippet:

local reason = "Critical health condition" -- reason of dispatch
TriggerEvent("uniq-emsdispatch:client:sendAlert", reason)

Last updated