# ATTRIBUTE::GET_ATTRIBUTE_BASE_RANK

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

## Signature

```c
int GET_ATTRIBUTE_BASE_RANK(Ped ped, int attributeIndex);
```

## Parameters

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

## Returns

`int`

## Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

## Usage

### Lua

```lua
local retval = GetAttributeBaseRank(ped, attributeIndex)

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

### JavaScript

```js
const retval = GetAttributeBaseRank(ped, attributeIndex);

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

### C#

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

## Related enums

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

## See also

- [ATTRIBUTE::SET_ATTRIBUTE_BASE_RANK](https://natives.borderlinerp.com/natives/ATTRIBUTE/SET_ATTRIBUTE_BASE_RANK.md) — PA_HEALTH, PA_STAMINA, PA_SPECIALABILITY, PA_COURAGE, PA_AGILITY, PA_SPEED, PA_ACCELERATION, PA_BONDING, SA_HUNGER, SA_FATIGUED, SA_INEBRIATED, SA_POISONED, SA_BODYHEAT, SA_BODYWEIGHT, SA_OVERFED, SA_SICKNESS, SA_DIRTINESS, SA_DIRTINESSH…

*Sources: alloc8or RDR3 NativeDB.*
