The Lab
PED native

GET_GROUP_SIZE

returns void3 paramsbuild 1207

Writes whether the group groupId has a leader and how many followers it has into hasLeader and numberOfFollowers.

Signature

C
void GET_GROUP_SIZE(int groupId, BOOL* hasLeader, int* numberOfFollowers); // 0x8DE69FE35CA09A45 b1207

Parameters

#NameType
1groupIdint
2hasLeaderBOOL* (out pointer)
3numberOfFollowersint* (out pointer)

Facts

Facts about GET_GROUP_SIZE
Name
GET_GROUP_SIZE
Hash
0x8DE69FE35CA09A45
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hasLeader, numberOfFollowers = Citizen.InvokeNative(0x8DE69FE35CA09A45, -- GET_GROUP_SIZE
  0, -- int groupId
  Citizen.PointerValueInt(), -- BOOL* hasLeader
  Citizen.PointerValueInt() -- int* numberOfFollowers
)
print(hasLeader, numberOfFollowers)
JavaScript
const [hasLeader, numberOfFollowers] = Citizen.invokeNative("0x8DE69FE35CA09A45", // GET_GROUP_SIZE
  0, // int groupId
  Citizen.pointerValueInt(), // BOOL* hasLeader
  Citizen.pointerValueInt() // int* numberOfFollowers
);
console.log(hasLeader, numberOfFollowers)
C#
var hasLeaderArg = new OutputArgument();
var numberOfFollowersArg = new OutputArgument();
Function.Call((Hash)0x8DE69FE35CA09A45, // GET_GROUP_SIZE
  0, // int groupId
  hasLeaderArg, // BOOL* hasLeader
  numberOfFollowersArg // int* numberOfFollowers
);
bool hasLeader = hasLeaderArg.GetResult<bool>();
int numberOfFollowers = numberOfFollowersArg.GetResult<int>();
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.