COUNT_PARTICIPANT_BITS
Hash
0x2F050A3FF8738245Runtime name
CountParticipantBitsNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
Signature
int COUNT_PARTICIPANT_BITS(Any* value);Parameters
| Name | Type | Description |
|---|---|---|
value | Any* | — |
Returns int
Usage
local retval, value = CountParticipantBits(value)
-- always works, by hash
local retval, value = Citizen.InvokeNative(0x2F050A3FF8738245, Citizen.PointerValueIntInitialized(value), Citizen.ResultAsInteger())JavaScript and C#
const [retval, value] = CountParticipantBits(value);
// by hash
const [retval, value] = Citizen.invokeNative('0x2F050A3FF8738245', Citizen.pointerValueIntInitialized(value), Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.