The Lab
SCRIPT native

_SET_PLAYER_BIT_AT_INDEX

returns void2 paramsbuild 1207

Sets the bit at bitIndex in the player bitset value.

Signature

C
void _SET_PLAYER_BIT_AT_INDEX(Any* value, int bitIndex); // 0x31010318BA9897AC b1207

Parameters

#NameType
1valueAny* (out pointer)
2bitIndexint

Facts

Facts about _SET_PLAYER_BIT_AT_INDEX
Name
_SET_PLAYER_BIT_AT_INDEX
Hash
0x31010318BA9897AC
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local value = Citizen.InvokeNative(0x31010318BA9897AC, -- _SET_PLAYER_BIT_AT_INDEX
  Citizen.PointerValueInt(), -- Any* value
  0 -- int bitIndex
)
print(value)
JavaScript
const value = Citizen.invokeNative("0x31010318BA9897AC", // _SET_PLAYER_BIT_AT_INDEX
  Citizen.pointerValueInt(), // Any* value
  0 // int bitIndex
);
console.log(value)
C#
var valueArg = new OutputArgument();
Function.Call((Hash)0x31010318BA9897AC, // _SET_PLAYER_BIT_AT_INDEX
  valueArg, // Any* value
  0 // int bitIndex
);
int value = valueArg.GetResult<int>();
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.