STAT_ID_SET_TO_POSSE_ID
Hash
0x34B22DE38477EDB4Runtime name
StatIdSetToPosseIdNamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207
Signature
void STAT_ID_SET_TO_POSSE_ID(Any* statId);Parameters
| Name | Type | Description |
|---|---|---|
statId | Any* | — |
Returns void
Description
statId: see STAT_ID_IS_VALID
Usage
local statId = StatIdSetToPosseId(statId)
-- always works, by hash
local statId = Citizen.InvokeNative(0x34B22DE38477EDB4, Citizen.PointerValueIntInitialized(statId))JavaScript and C#
const statId = StatIdSetToPosseId(statId);
// by hash
const statId = Citizen.invokeNative('0x34B22DE38477EDB4', Citizen.pointerValueIntInitialized(statId));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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.