RedM Natives

GET_GROUP_SIZE

Hash0x8DE69FE35CA09A45
Runtime nameGetGroupSize
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8DE69FE35CA09A45

Signature

void GET_GROUP_SIZE(int groupId, BOOL* hasLeader, int* numberOfFollowers);

Parameters

NameTypeDescription
groupIdint—
hasLeaderBOOL*—
numberOfFollowersint*—

Returns void

Usage

Lua
local hasLeader, numberOfFollowers = GetGroupSize(groupId)

-- always works, by hash
local hasLeader, numberOfFollowers = Citizen.InvokeNative(0x8DE69FE35CA09A45, groupId, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.PointerValueInt())
JavaScript and C#
JavaScript
const [hasLeader, numberOfFollowers] = GetGroupSize(groupId);

// by hash
const [hasLeader, numberOfFollowers] = Citizen.invokeNative('0x8DE69FE35CA09A45', groupId, Citizen.pointerValueInt() /* BOOL* */, Citizen.pointerValueInt());
C#
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

alloc8or RDR3 NativeDB

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