# PED::GET_GROUP_SIZE

- **Hash:** `0x8DE69FE35CA09A45`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetGroupSize`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/GET_GROUP_SIZE

## Signature

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

## Parameters

- `groupId` (`int`)
- `hasLeader` (`BOOL*`)
- `numberOfFollowers` (`int*`)

## Returns

`void`

## Usage

### Lua

```lua
local hasLeader, numberOfFollowers = GetGroupSize(groupId)

-- always available, by hash
local hasLeader, numberOfFollowers = Citizen.InvokeNative(0x8DE69FE35CA09A45, groupId, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.PointerValueInt())
```

### JavaScript

```js
const [hasLeader, numberOfFollowers] = GetGroupSize(groupId);

// by hash
const [hasLeader, numberOfFollowers] = Citizen.invokeNative('0x8DE69FE35CA09A45', groupId, Citizen.pointerValueInt() /* BOOL* */, Citizen.pointerValueInt());
```

### C#

```csharp
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.*
