RedM Natives

STAT_ID_SET_TO_POSSE_ID

Hash0x34B22DE38477EDB4
Runtime nameStatIdSetToPosseId
NamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207

Signature

void STAT_ID_SET_TO_POSSE_ID(Any* statId);

Parameters

NameTypeDescription
statIdAny*—

Returns void

Description

statId: see STAT_ID_IS_VALID

Usage

Lua
local statId = StatIdSetToPosseId(statId)

-- always works, by hash
local statId = Citizen.InvokeNative(0x34B22DE38477EDB4, Citizen.PointerValueIntInitialized(statId))
JavaScript and C#
JavaScript
const statId = StatIdSetToPosseId(statId);

// by hash
const statId = Citizen.invokeNative('0x34B22DE38477EDB4', Citizen.pointerValueIntInitialized(statId));
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.