The Lab
SCRIPT native

COUNT_PARTICIPANT_BITS

returns int1 parambuild 1207

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

Signature

C
int COUNT_PARTICIPANT_BITS(Any* value); // 0x2F050A3FF8738245 b1207

Parameters

#NameType
1valueAny* (out pointer)

Facts

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