SET_PED_ARMOUR
Sets the armor of the specified ped.
Signature
void SET_PED_ARMOUR(Ped ped, int amount);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
amount | int | — |
Returns void
Description
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
SetPedArmour(ped, amount)
-- always works, by hash
Citizen.InvokeNative(0x4e3a0cc4, ped, amount)JavaScript and C#
SetPedArmour(ped, amount);
// by hash
Citizen.invokeNative('0x4e3a0cc4', ped, amount);Function.Call((Hash)0x4e3a0cc4, ped, amount);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.