ESX.RegisterServerCallback('esx_ambulancejob:getDeathStatus', function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
MySQL.Async.fetchScalar('SELECT is_dead FROM users WHERE identifier = @identifier', {
['@identifier'] = xPlayer.identifier
}, function(isDead)
-- isDead = isDead == 1 and true or false
if isDead == true then
print(('[esx_ambulancejob] [^2INFO^7] "%s" attempted combat logging'):format(xPlayer.identifier))
dclog("webhook_giriniz", xPlayer, 'combat log atti')
end
cb(isDead)
end)
end)