The Lab
SCRIPT native

GET_BLOCK_OF_PLAYER_BITS

returns int2 paramsbuild 1207

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

Returns a block of bits from the player bitset value; p1 appears to select the block.

Signature

C
int GET_BLOCK_OF_PLAYER_BITS(Any* value, int p1); // 0xFA3B530A5CC693D5 b1207

Parameters

#NameType
1valueAny* (out pointer)
2p1int

Facts

Facts about GET_BLOCK_OF_PLAYER_BITS
Name
GET_BLOCK_OF_PLAYER_BITS
Hash
0xFA3B530A5CC693D5
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result, value = Citizen.InvokeNative(0xFA3B530A5CC693D5, -- GET_BLOCK_OF_PLAYER_BITS
  Citizen.PointerValueInt(), -- Any* value
  0, -- int p1
  Citizen.ResultAsInteger()
)
print(result, value)
JavaScript
const [result, value] = Citizen.invokeNative("0xFA3B530A5CC693D5", // GET_BLOCK_OF_PLAYER_BITS
  Citizen.pointerValueInt(), // Any* value
  0, // int p1
  Citizen.resultAsInteger()
);
console.log(result, value)
C#
var valueArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xFA3B530A5CC693D5, // GET_BLOCK_OF_PLAYER_BITS
  valueArg, // Any* value
  0 // int p1
);
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.