Fixed players always being combat logged (#259)

Merging a temporary fix for players always being combat logged.
This commit is contained in:
SamBehner
2020-07-03 12:44:01 -04:00
committed by GitHub
parent df425fb56b
commit 61753c45d2
+3 -1
View File
@@ -288,7 +288,9 @@ ESX.RegisterServerCallback('esx_ambulancejob:getDeathStatus', function(source, c
MySQL.Async.fetchScalar('SELECT is_dead FROM users WHERE identifier = @identifier', {
['@identifier'] = xPlayer.identifier
}, function(isDead)
if isDead then
isDead = isDead == 1 and true or false
if isDead == true then
print(('[esx_ambulancejob] [^2INFO^7] "%s" attempted combat logging'):format(xPlayer.identifier))
end