Skip to content

Commit

Permalink
Merge pull request esx-framework#91 from NRTnarathip/patch-2
Browse files Browse the repository at this point in the history
Fix Bug isDead == 1 it be should isDead == true
  • Loading branch information
TylerA2 authored Feb 19, 2022
2 parents c5bd33c + 98d788d commit 7e0b9cf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions [esx_addons]/esx_ambulancejob/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,7 @@ end)
ESX.RegisterServerCallback('esx_ambulancejob:getDeathStatus', function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
MySQL.scalar('SELECT is_dead FROM users WHERE identifier = ?', {xPlayer.identifier}, function(isDead)

if isDead == 1 then
cb(true)
else
cb(false)
end
cb(isDead)
end)
end)

Expand Down

0 comments on commit 7e0b9cf

Please sign in to comment.