mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
Fixed players always being combat logged (#259)
Merging a temporary fix for players always being combat logged.
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user