mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user