๐Ÿš‘Ambulancejob ( ESX )

This page contains 2 Installation. 1. Adding Dispatches 2. Adding the GetDeath event to your ambulancejob

Adding Dispatches

  1. Navigate to your <esx_ambulancejob> > <main.lua> file.

  2. Search for the SendDistressSignal() function in the file.

  3. Replace the entire function with the following code:

function SendDistressSignal()
	TriggerEvent("d-phone:client:message:senddispatch", "Unconscious person", "ambulance")
	TriggerEvent("d-notification", "Service Message sended", 5000,  "success")
end
  1. Save the file and restart your server.

Adding the GetDeath export to your Ambulancejob

  1. Navigate to your <esx_ambulancejob> > <main.lua> file.

  2. Add the following code to the bottom of the file:

function GetDeath()
    if IsDead then
        return true
    elseif not IsDead then
        return false
    end
end
  1. Save the file.

  2. Open your <fxmanifest.lua> or <resource.lua> ( of your ambulance job ) file.

  3. Add the following code also at the bottom to the file:

exports {
    'GetDeath'
}
  1. Save the file and restart your server.

Last updated