PedClient

addArmourToPed

ADD_ARMOUR_TO_PED0x5BA652A0CD14DF2F

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
amountintnumberinteger

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

Open in the interactive natives reference