mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
optimize little
like
'''
if isDead then
cb(true)
else
cb(false)
end
''''
This commit is contained in:
@@ -290,12 +290,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 then
|
||||
cb(true)
|
||||
else
|
||||
cb(false)
|
||||
end
|
||||
cb(isDead)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user