# ATTRIBUTE::ENABLE_ATTRIBUTE_OVERPOWER

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

## Signature

```c
void ENABLE_ATTRIBUTE_OVERPOWER(Ped ped, int attributeIndex, float value, BOOL makeSound);
```

## Parameters

- `ped` (`Ped`)
- `attributeIndex` (`int`)
- `value` (`float`)
- `makeSound` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

Old name: _SET_ATTRIBUTE_OVERPOWER_VALUE

*Source: femga rdr3_discoveries*

```
// 0xF6A7C08DF2E28B28
void _SET_ATTRIBUTE_OVERPOWER_AMOUNT(int ped, int coreIndex, float value, BOOL makeSound);

Use this native to make the outer core overpowered. Value is between `0.0` and more than `5000.0`, the higher the number, the longer it takes for the core to drain the overpowered status.
Example for the Dead Eye core (index `2`) set to `5000.0`:
![](https://i.imgur.com/otm6HiP.png)
so far these both only seem to work with localGame, does not appear to be working in "online" mode.
```

## Usage

### Lua

```lua
EnableAttributeOverpower(ped, attributeIndex, value, makeSound)

-- always available, by hash
Citizen.InvokeNative(0xF6A7C08DF2E28B28, ped, attributeIndex, value, makeSound)
```

### JavaScript

```js
EnableAttributeOverpower(ped, attributeIndex, value, makeSound);

// by hash
Citizen.invokeNative('0xF6A7C08DF2E28B28', ped, attributeIndex, value + 0.0000001, makeSound);
```

### C#

```csharp
Function.Call((Hash)0xF6A7C08DF2E28B28, ped, attributeIndex, value, makeSound);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

## Related enums

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

## See also

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

*Sources: alloc8or RDR3 NativeDB, femga rdr3_discoveries.*
