diff --git a/[gameplay]/killmessages/scripts/client/c.killmessages.lua b/[gameplay]/killmessages/scripts/client/c.killmessages.lua index 1e39b2ea1..bc3fe4104 100644 --- a/[gameplay]/killmessages/scripts/client/c.killmessages.lua +++ b/[gameplay]/killmessages/scripts/client/c.killmessages.lua @@ -134,10 +134,12 @@ end) addEventHandler('onClientPlayerWasted', localPlayer, function() if (not possibleKiller) then - -- If there is no possible killer and the current vehicle is exploded local myVehicle = getPedOccupiedVehicle(localPlayer) - myVehicle = myVehicle and isVehicleBlown(myVehicle) - triggerServerEvent('outputKillFromClient', localPlayer, localPlayer, myVehicle) + + if myVehicle and isVehicleBlown(myVehicle) then + triggerServerEvent('outputKillFromClient', localPlayer, localPlayer, myVehicle) + end + return end