mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 02:38:53 +00:00
Merge pull request #91 from NRTnarathip/patch-2
Fix Bug isDead == 1 it be should isDead == true
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user