From 9bfad50acbd476214c1114879df2f61f6f0f9880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BClling?= Date: Sat, 9 May 2020 19:41:08 +0200 Subject: [PATCH] clear more stuff --- client/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/main.lua b/client/main.lua index 3909a19..59aa0d4 100644 --- a/client/main.lua +++ b/client/main.lua @@ -72,6 +72,8 @@ function RespawnPed(ped, coords, heading) NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, heading, true, false) SetPlayerInvincible(ped, false) ClearPedBloodDamage(ped) + ClearPedLastDamageBone(ped) + ClearPedTasks(ped) TriggerServerEvent('esx:onPlayerSpawn') TriggerEvent('esx:onPlayerSpawn')