Description
Describe the bug
setElementHealth inside onClientPedDamage can cause crash.
To Reproduce
function handleDamage(attacker,weapon,bodypart,loss)
setElementHealth(source,1)
end
addEventHandler("onClientPedDamage",root,handleDamage)
Expected behavior
No crash.
MTA Client (please complete the following information):
v1.5.5-release-13192
Additional context
client_1.5.5-release-13192.0.000_gtasa_00332b2a_5_QPrMb_0100007F_55F3_178_4564C_20180722_2146.dmp