PedClient

setPedArmour

SET_PED_ARMOUR0xCEA04D83135264CC

The 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.

SignatureJavaScript
setPedArmour(ped: Ped, amount: number): void
SignatureLua
setPedArmour(ped: Ped, amount: integer)

Usage

JavaScript
setPedArmour(ped, amount);
Lua
setPedArmour(ped, amount)

Parameters

ParameterTypeJavaScriptLuaDescription
pedPednumberintegerThe Ped to set the armor of.
amountintnumberintegerA 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

Open in the interactive natives reference