GET_GROUP_SIZE
Hash
0x8DE69FE35CA09A45Runtime name
GetGroupSizeNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8DE69FE35CA09A45Signature
void GET_GROUP_SIZE(int groupId, BOOL* hasLeader, int* numberOfFollowers);Parameters
| Name | Type | Description |
|---|---|---|
groupId | int | — |
hasLeader | BOOL* | — |
numberOfFollowers | int* | — |
Returns void
Usage
local hasLeader, numberOfFollowers = GetGroupSize(groupId)
-- always works, by hash
local hasLeader, numberOfFollowers = Citizen.InvokeNative(0x8DE69FE35CA09A45, groupId, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.PointerValueInt())JavaScript and C#
const [hasLeader, numberOfFollowers] = GetGroupSize(groupId);
// by hash
const [hasLeader, numberOfFollowers] = Citizen.invokeNative('0x8DE69FE35CA09A45', groupId, Citizen.pointerValueInt() /* BOOL* */, Citizen.pointerValueInt());var hasLeader = new OutputArgument();
var numberOfFollowers = new OutputArgument();
Function.Call((Hash)0x8DE69FE35CA09A45, groupId, hasLeader, numberOfFollowers);
// hasLeader.GetResult<bool>()
// numberOfFollowers.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.