# ATTRIBUTE::_SET_ATTRIBUTE_CORE_VALUE

- **Hash:** `0xC6258F41D86676E0`
- **Namespace:** ATTRIBUTE
- **Runtime name (Lua/JS):** `SetAttributeCoreValue`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ATTRIBUTE/_SET_ATTRIBUTE_CORE_VALUE

## Signature

```c
void _SET_ATTRIBUTE_CORE_VALUE(Ped ped, int coreIndex, int value);
```

## Parameters

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

## Returns

`void`

## Description

coreIndex:
enum eAttributeCore
{
	ATTRIBUTE_CORE_HEALTH,
	ATTRIBUTE_CORE_STAMINA,
	ATTRIBUTE_CORE_DEADEYE
};

## Usage

### Lua

```lua
SetAttributeCoreValue(ped, coreIndex, value)

-- always available, by hash
Citizen.InvokeNative(0xC6258F41D86676E0, ped, coreIndex, value)
```

### JavaScript

```js
SetAttributeCoreValue(ped, coreIndex, value);

// by hash
Citizen.invokeNative('0xC6258F41D86676E0', ped, coreIndex, value);
```

### C#

```csharp
Function.Call((Hash)0xC6258F41D86676E0, ped, coreIndex, value);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [ATTRIBUTE::_GET_ATTRIBUTE_CORE_VALUE](https://natives.borderlinerp.com/natives/ATTRIBUTE/_GET_ATTRIBUTE_CORE_VALUE.md) — Gets the ped's core value on a scale of 0 to 100.

*Sources: alloc8or RDR3 NativeDB.*
