RedM Natives

SET_PED_ARMOUR

Sets the armor of the specified ped.

Hash0x4E3A0CC4
Runtime nameSetPedArmour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_PED_ARMOUR(Ped ped, int amount);

Parameters

NameTypeDescription
pedPed—
amountint—

Returns void

Description

Cfx.re native reference

Sets the armor of the specified ped.
ped: The Ped to set the armor of.
amount: A value between 0 and 100 indicating the value to set the Ped's armor to.

This is the server-side RPC native equivalent of the client native SET_PED_ARMOUR.

Usage

Lua
SetPedArmour(ped, amount)

-- always works, by hash
Citizen.InvokeNative(0x4e3a0cc4, ped, amount)
JavaScript and C#
JavaScript
SetPedArmour(ped, amount);

// by hash
Citizen.invokeNative('0x4e3a0cc4', ped, amount);
C#
Function.Call((Hash)0x4e3a0cc4, ped, amount);

See also

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.