Update death.lua

This commit is contained in:
Andyyy7666
2023-12-26 23:00:32 +01:00
parent d939607d64
commit 71a54be704

View File

@@ -29,7 +29,7 @@ AddEventHandler("gameEventTriggered", function(name, args)
local victim = args[1] local victim = args[1]
if not IsPedAPlayer(victim) or NetworkGetPlayerIndexFromPed(victim) ~= cache.playerId then return end if not IsPedAPlayer(victim) or NetworkGetPlayerIndexFromPed(victim) ~= cache.playerId then return end
if not IsPedDeadOrDying(victim, true) and GetEntityHealth(victim) > 0 then if not IsPedDeadOrDying(victim, true) then
local hit, bone = GetPedLastDamageBone(victim) local hit, bone = GetPedLastDamageBone(victim)
if hit and usingAmbulance then if hit and usingAmbulance then
local damageWeapon = ambulance:getLastDamagingWeapon(victim) local damageWeapon = ambulance:getLastDamagingWeapon(victim)