# PED::SET_PED_COMBAT_ATTRIBUTES

- **Hash:** `0x9F7794730795E019`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetPedCombatAttributes`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SET_PED_COMBAT_ATTRIBUTES

## Signature

```c
void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeIndex, BOOL enabled);
```

## Parameters

- `ped` (`Ped`)
- `attributeIndex` (`int`)
- `enabled` (`BOOL`)

## Returns

`void`

## Description

attributeIndex: https://alloc8or.re/rdr3/doc/enums/eCombatAttribute.txt
https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_ATTRIBUTES

## Usage

### Lua

```lua
SetPedCombatAttributes(ped, attributeIndex, enabled)

-- always available, by hash
Citizen.InvokeNative(0x9F7794730795E019, ped, attributeIndex, enabled)
```

### JavaScript

```js
SetPedCombatAttributes(ped, attributeIndex, enabled);

// by hash
Citizen.invokeNative('0x9F7794730795E019', ped, attributeIndex, enabled);
```

### C#

```csharp
Function.Call((Hash)0x9F7794730795E019, ped, attributeIndex, enabled);
```

## Related enums

- [Combat__Attribute__Enum](https://natives.borderlinerp.com/enums/Combat__Attribute__Enum.md) — 135 values

*Sources: alloc8or RDR3 NativeDB.*
