clearPedLastWeaponDamage
CLEAR_PED_LAST_WEAPON_DAMAGE0x0E98F88A24C5F4B8The GTA V native CLEAR_PED_LAST_WEAPON_DAMAGE of the WEAPON namespace, as LS:MP client scripts call it: the global function clearPedLastWeaponDamage, in JavaScript and in Lua.
clearPedLastWeaponDamage(ped: Ped): voidclearPedLastWeaponDamage(ped: Ped)Usage
JavaScript
clearPedLastWeaponDamage(ped);Lua
clearPedLastWeaponDamage(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Does NOT seem to work with hasPedBeenDamagedByWeapon. Use clearEntityLastWeaponDamage and hasEntityBeenDamagedByWeapon instead.
Reference
- Namespace
- Weapon WEAPON
- In the game
void CLEAR_PED_LAST_WEAPON_DAMAGE(Ped ped)- Hash
0x0E98F88A24C5F4B8