# PED::_GET_GROUP_FORMATION

- **Hash:** `0x13A1B061007C906B`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetGroupFormation`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_GROUP_FORMATION

## Signature

```c
int _GET_GROUP_FORMATION(int groupId);
```

## Parameters

- `groupId` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetGroupFormation(groupId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x13A1B061007C906B, groupId, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetGroupFormation(groupId);

// by hash
const retval = Citizen.invokeNative('0x13A1B061007C906B', groupId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x13A1B061007C906B, groupId);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## Related enums

- [Ped Group Formation](https://natives.borderlinerp.com/enums/Ped-Group-Formation.md) — 13 values

## See also

- [PED::SET_GROUP_FORMATION](https://natives.borderlinerp.com/natives/PED/SET_GROUP_FORMATION.md) — eFormationType

*Sources: alloc8or RDR3 NativeDB.*
