addArmourToPed
ADD_ARMOUR_TO_PED0x5BA652A0CD14DF2FThe GTA V native ADD_ARMOUR_TO_PED of the PED namespace, as LS:MP client scripts call it: the global function addArmourToPed, in JavaScript and in Lua.
addArmourToPed(ped: Ped, amount: number): voidaddArmourToPed(ped: Ped, amount: integer)Usage
JavaScript
addArmourToPed(ped, amount);Lua
addArmourToPed(ped, amount)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
amount | int | 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.
Same as setPedArmour, but ADDS 'amount' to the armor the Ped already has.
Reference
- Namespace
- Ped PED
- In the game
void ADD_ARMOUR_TO_PED(Ped ped, int amount)- Hash
0x5BA652A0CD14DF2F