From 61753c45d297b936268ddf339cdbf3b0d281eb80 Mon Sep 17 00:00:00 2001 From: SamBehner <37122399+SamBehner@users.noreply.github.com> Date: Fri, 3 Jul 2020 12:44:01 -0400 Subject: [PATCH] Fixed players always being combat logged (#259) Merging a temporary fix for players always being combat logged. --- server/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 664d7457..042470ee 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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