# ATTRIBUTE::SET_ATTRIBUTE_BONUS_RANK

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

## Signature

```c
void SET_ATTRIBUTE_BONUS_RANK(Ped ped, int attributeIndex, int newValue);
```

## Parameters

- `ped` (`Ped`)
- `attributeIndex` (`int`)
- `newValue` (`int`)

## Returns

`void`

## Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

## Usage

### Lua

```lua
SetAttributeBonusRank(ped, attributeIndex, newValue)

-- always available, by hash
Citizen.InvokeNative(0x920F9488BD115EFB, ped, attributeIndex, newValue)
```

### JavaScript

```js
SetAttributeBonusRank(ped, attributeIndex, newValue);

// by hash
Citizen.invokeNative('0x920F9488BD115EFB', ped, attributeIndex, newValue);
```

### C#

```csharp
Function.Call((Hash)0x920F9488BD115EFB, ped, attributeIndex, newValue);
```

## Related enums

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

## See also

- [ATTRIBUTE::GET_ATTRIBUTE_BONUS_RANK](https://natives.borderlinerp.com/natives/ATTRIBUTE/GET_ATTRIBUTE_BONUS_RANK.md)

*Sources: alloc8or RDR3 NativeDB.*
