The Lab
SCRIPT native

COUNT_PLAYER_BITS

returns int1 parambuild 1207

Returns how many bits are set in the player bitset value.

Signature

C
int COUNT_PLAYER_BITS(Any* value); // 0x462C687BEA254BD9 b1207

Parameters

#NameType
1valueAny* (out pointer)

Facts

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