Ok,
maybe, “ClearPedLastWeaponDamage” is broken.
You can try with two other function:
Any CLEAR_ENTITY_LAST_DAMAGE_ENTITY(Entity entity); void CLEAR_ENTITY_LAST_WEAPON_DAMAGE(Entity entity);