# ATTRIBUTE::GET_ATTRIBUTE_BONUS_RANK

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

## Signature

```c
int GET_ATTRIBUTE_BONUS_RANK(Ped ped, int coreIndex);
```

## Parameters

- `ped` (`Ped`)
- `coreIndex` (`int`)

## Returns

`int`

## Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

## Usage

### Lua

```lua
local retval = GetAttributeBonusRank(ped, coreIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x0EFA71F4B4330E04, ped, coreIndex, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetAttributeBonusRank(ped, coreIndex);

// by hash
const retval = Citizen.invokeNative('0x0EFA71F4B4330E04', ped, coreIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x0EFA71F4B4330E04, ped, coreIndex);
```

## Related enums

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

## See also

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

*Sources: alloc8or RDR3 NativeDB.*
