# STATS::_STAT_ID_INCREMENT_INT

- **Hash:** `0x6A0184E904CDF25E`
- **Namespace:** STATS
- **Runtime name (Lua/JS):** `StatIdIncrementInt`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described with examples
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/STATS/_STAT_ID_INCREMENT_INT

## Signature

```c
void _STAT_ID_INCREMENT_INT(Any* statId, int value);
```

## Parameters

- `statId` (`Any*`)
- `value` (`int`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

statId: see STAT_ID_IS_VALID

*Source: VORPCORE RDR3natives*

Increments an integer stat by the supplied amount. `statId` is not a raw stat hash; it is a stat-id buffer/struct in the same format used by STAT_ID_IS_VALID. In common usage this is an 8-byte buffer with the stat hash written as int32 at offset 0 and 0 written as int32 at offset 4. Use this for counter-style stats, for example incrementing FISH_ESCAPED by 1. The first argument is not a plain integer stat hash; it is a stat-id buffer.

## Usage

### Lua

```lua
local statId = StatIdIncrementInt(value)

-- always available, by hash
local statId = Citizen.InvokeNative(0x6A0184E904CDF25E, Citizen.PointerValueInt(), value)
```

### JavaScript

```js
const statId = StatIdIncrementInt(value);

// by hash
const statId = Citizen.invokeNative('0x6A0184E904CDF25E', Citizen.pointerValueInt(), value);
```

### C#

```csharp
var statId = new OutputArgument();
Function.Call((Hash)0x6A0184E904CDF25E, statId, value);
// statId.GetResult<int>()
```

- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.
- 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.

## Examples

*Source: VORPCORE RDR3natives*

```lua
local function createStatIdBuffer(statHash)
    local view = DataView.ArrayBuffer(8)
    view:SetInt32(0, statHash, true)
    view:SetInt32(4, 0, true)
    return view
end

local statId = createStatIdBuffer(GetHashKey("FISH_ESCAPED"))
Citizen.InvokeNative(0x6A0184E904CDF25E, statId:Buffer(), 1)
```

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
