Replace job by job.name

This commit is contained in:
Space V
2022-08-22 03:53:04 +02:00
parent 7abb59021d
commit 99a9b72e51
+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))