_SET_PLAYER_BIT_AT_INDEX
Hash
0x31010318BA9897ACRuntime name
SetPlayerBitAtIndexNamespaceSCRIPT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PLAYER_BIT_AT_INDEX(Any* value, int bitIndex);Parameters
| Name | Type | Description |
|---|---|---|
value | Any* | — |
bitIndex | int | — |
Returns void
Usage
local value = SetPlayerBitAtIndex(bitIndex)
-- always works, by hash
local value = Citizen.InvokeNative(0x31010318BA9897AC, Citizen.PointerValueInt(), bitIndex)JavaScript and C#
const value = SetPlayerBitAtIndex(bitIndex);
// by hash
const value = Citizen.invokeNative('0x31010318BA9897AC', Citizen.pointerValueInt(), bitIndex);var value = new OutputArgument();
Function.Call((Hash)0x31010318BA9897AC, value, bitIndex);
// value.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
InvokeNativewith the hash — it always works.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.