Merge pull request #91 from NRTnarathip/patch-2

Fix Bug isDead == 1 it be should isDead == true
This commit is contained in:
Esplike
2022-02-19 01:55:07 +00:00
committed by GitHub
@@ -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)