17 lines
396 B
Lua
17 lines
396 B
Lua
AddEventHandler('gameEventTriggered', function(name, args)
|
|
if name == 'CEventNetworkEntityDamage' then
|
|
local ped = PlayerPedId()
|
|
ClearPedBloodDamage(ped)
|
|
ResetPedVisibleDamage(ped)
|
|
end
|
|
end)
|
|
|
|
CreateThread(function()
|
|
while true do
|
|
Wait(0)
|
|
local ped = PlayerPedId()
|
|
ClearPedBloodDamage(ped)
|
|
ResetPedVisibleDamage(ped)
|
|
end
|
|
end)
|