The Lab
SCRIPT native

SET_BLOCK_OF_PLAYER_BITS

returns void3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Writes a block of bits into the player bitset value; the meaning of p1 and p2 is not well documented.

Signature

C
void SET_BLOCK_OF_PLAYER_BITS(Any* value, int p1, int p2); // 0xC6DFB8C04C86D5A5 b1207

Parameters

#NameType
1valueAny* (out pointer)
2p1int
3p2int

Facts

Facts about SET_BLOCK_OF_PLAYER_BITS
Name
SET_BLOCK_OF_PLAYER_BITS
Hash
0xC6DFB8C04C86D5A5
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(0xC6DFB8C04C86D5A5, -- SET_BLOCK_OF_PLAYER_BITS
  Citizen.PointerValueInt(), -- Any* value
  0, -- int p1
  0 -- int p2
)
print(value)
JavaScript
const value = Citizen.invokeNative("0xC6DFB8C04C86D5A5", // SET_BLOCK_OF_PLAYER_BITS
  Citizen.pointerValueInt(), // Any* value
  0, // int p1
  0 // int p2
);
console.log(value)
C#
var valueArg = new OutputArgument();
Function.Call((Hash)0xC6DFB8C04C86D5A5, // SET_BLOCK_OF_PLAYER_BITS
  valueArg, // Any* value
  0, // int p1
  0 // int p2
);
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.