setPedArmour
SET_PED_ARMOUR0xCEA04D83135264CCThe GTA V native SET_PED_ARMOUR of the PED namespace, as LS:MP client scripts call it: the global function setPedArmour, in JavaScript and in Lua.
setPedArmour(ped: Ped, amount: number): voidsetPedArmour(ped: Ped, amount: integer)Usage
JavaScript
setPedArmour(ped, amount);Lua
setPedArmour(ped, amount)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
ped | Ped | number | integer | The Ped to set the armor of. |
amount | int | number | integer | A value between 0 and 100 indicating the value to set the Ped's armor to. |
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.
Sets the armor of the specified ped.
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_ARMOUR(Ped ped, int amount)- Hash
0xCEA04D83135264CC