fix(es_extended/death): getting wrong value

This commit is contained in:
Kasey FItton
2024-10-25 20:15:14 +01:00
parent a3a7b17f4e
commit 383daade17
+6 -2
View File
@@ -46,7 +46,11 @@ function Death:Natual()
end
function Death:Damaged(victim, victimDied)
if not IsPedAPlayer(victim) then
if not IsEntityAPed(victim) then
return
end
if IsPedAPlayer(victim) then
return
end
@@ -74,5 +78,5 @@ AddEventHandler("gameEventTriggered", function(event, data)
if event ~= "CEventNetworkEntityDamage" then
return
end
Death:Damaged(data[3], data[4])
Death:Damaged(data[1], data[4])
end)