COUNT_PLAYER_BITS
Returns how many bits are set in the player bitset value.
Signature
int COUNT_PLAYER_BITS(Any* value); // 0x462C687BEA254BD9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | value | Any* (out pointer) |
Facts
| 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.
local result, value = Citizen.InvokeNative(0x462C687BEA254BD9, -- COUNT_PLAYER_BITS
Citizen.PointerValueInt(), -- Any* value
Citizen.ResultAsInteger()
)
print(result, value)const [result, value] = Citizen.invokeNative("0x462C687BEA254BD9", // COUNT_PLAYER_BITS
Citizen.pointerValueInt(), // Any* value
Citizen.resultAsInteger()
);
console.log(result, value)var valueArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x462C687BEA254BD9, // COUNT_PLAYER_BITS
valueArg // Any* value
);
int value = valueArg.GetResult<int>();Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.