Client
Here are some useful Events and Exports
ESX Ambulancejob Export Integration
Step 1: Locate the Event Handler
Navigate to your esx_ambulancejob/client/main.lua
file and find the following code:
AddEventHandler('esx:onPlayerDeath', function(data)
OnPlayerDeath()
end)
Step 2: Modify the Event Handler
Replace the existing code with the following updated version:
AddEventHandler('esx:onPlayerDeath', function(data)
if not exports["rs_ffa"]:isInFFA() then
OnPlayerDeath()
end
end)
This change ensures that the OnPlayerDeath()
function is only called if the player is not currently in a Free For All (FFA) session.
exports["rs_ffa"]:isInFFA()
exports["rs_ffa"]:isInFFA()
Last updated