RedM Natives

COUNT_PARTICIPANT_BITS

Hash0x2F050A3FF8738245
Runtime nameCountParticipantBits
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207

Signature

int COUNT_PARTICIPANT_BITS(Any* value);

Parameters

NameTypeDescription
valueAny*—

Returns int

Usage

Lua
local retval, value = CountParticipantBits(value)

-- always works, by hash
local retval, value = Citizen.InvokeNative(0x2F050A3FF8738245, Citizen.PointerValueIntInitialized(value), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, value] = CountParticipantBits(value);

// by hash
const [retval, value] = Citizen.invokeNative('0x2F050A3FF8738245', Citizen.pointerValueIntInitialized(value), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var value = new OutputArgument();
int retval = Function.Call<int>((Hash)0x2F050A3FF8738245, value);
// value.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.