# STATS::STAT_ID_SET_TO_POSSE_ID

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

## Signature

```c
void STAT_ID_SET_TO_POSSE_ID(Any* statId);
```

## Parameters

- `statId` (`Any*`)

## Returns

`void`

## Description

statId: see STAT_ID_IS_VALID

## Usage

### Lua

```lua
local statId = StatIdSetToPosseId(statId)

-- always available, by hash
local statId = Citizen.InvokeNative(0x34B22DE38477EDB4, Citizen.PointerValueIntInitialized(statId))
```

### JavaScript

```js
const statId = StatIdSetToPosseId(statId);

// by hash
const statId = Citizen.invokeNative('0x34B22DE38477EDB4', Citizen.pointerValueIntInitialized(statId));
```

### C#

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

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.

*Sources: alloc8or RDR3 NativeDB.*
