Fix Bug isDead == 1 it be should isDead == true

The variable type of "isDead" is a boolean, not a number.
This commit is contained in:
NRTnarathip
2022-02-16 14:34:26 +07:00
committed by GitHub
parent 707db9353e
commit d7af3ca999
@@ -290,8 +290,8 @@ 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
if isDead then
cb(true)
else
cb(false)