# PED::CREATE_GROUP

- **Hash:** `0x90370EBE0FEE1A3D`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `CreateGroup`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/CREATE_GROUP

## Signature

```c
int CREATE_GROUP(int taskAllocator);
```

## Parameters

- `taskAllocator` (`int`)

## Returns

`int`

## Description

Creates a new ped group.
Groups can contain up to 8 peds.

The parameter is unused.

Returns a handle to the created group, or 0 if a group couldn't be created.

## Usage

### Lua

```lua
local retval = CreateGroup(taskAllocator)

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

### JavaScript

```js
const retval = CreateGroup(taskAllocator);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
