# ATTRIBUTE::ADD_ATTRIBUTE_POINTS

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

## Signature

```c
void ADD_ATTRIBUTE_POINTS(Ped ped, int attributeIndex, int p2);
```

## Parameters

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

## Returns

`void`

## Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

## Usage

### Lua

```lua
AddAttributePoints(ped, attributeIndex, p2)

-- always available, by hash
Citizen.InvokeNative(0x75415EE0CB583760, ped, attributeIndex, p2)
```

### JavaScript

```js
AddAttributePoints(ped, attributeIndex, p2);

// by hash
Citizen.invokeNative('0x75415EE0CB583760', ped, attributeIndex, p2);
```

### C#

```csharp
Function.Call((Hash)0x75415EE0CB583760, ped, attributeIndex, p2);
```

## Related enums

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

## See also

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

*Sources: alloc8or RDR3 NativeDB.*
