# CFX::SET_PED_ARMOUR

- **Hash:** `0x4E3A0CC4`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetPedArmour`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_PED_ARMOUR

## Signature

```c
void SET_PED_ARMOUR(Ped ped, int amount);
```

## Parameters

- `ped` (`Ped`)
- `amount` (`int`)

## Returns

`void`

## Description

*Source: 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](?\_0xCEA04D83135264CC).**

## Usage

### Lua

```lua
SetPedArmour(ped, amount)

-- always available, by hash
Citizen.InvokeNative(0x4e3a0cc4, ped, amount)
```

### JavaScript

```js
SetPedArmour(ped, amount);

// by hash
Citizen.invokeNative('0x4e3a0cc4', ped, amount);
```

### C#

```csharp
Function.Call((Hash)0x4e3a0cc4, ped, amount);
```

## See also

- [CFX::GET_PED_ARMOUR](https://natives.borderlinerp.com/natives/CFX/GET_PED_ARMOUR.md)

*Sources: Cfx.re native reference.*
