Merge pull request #414 from ahcenezdh/main

refactor(esx_ambulance/client/job.lua) esx:setJob fixed
This commit is contained in:
Benzo
2022-08-27 21:32:29 +02:00
committed by GitHub
+1 -1
View File
@@ -499,7 +499,7 @@ end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
if isOnDuty and job ~= 'ambulance' then
if isOnDuty and job.name ~= 'ambulance' then
for playerId,v in pairs(deadPlayerBlips) do
if Config.Debug then
print("[INFO] removing dead player blip |" .. tostring(playerId))