# PED::SET_GROUP_SEPARATION_RANGE

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

## Signature

```c
void SET_GROUP_SEPARATION_RANGE(int groupId, float separationRange);
```

## Parameters

- `groupId` (`int`)
- `separationRange` (`float`)

## Returns

`void`

## Description

Sets the range at which members will automatically leave the group.

## Usage

### Lua

```lua
SetGroupSeparationRange(groupId, separationRange)

-- always available, by hash
Citizen.InvokeNative(0x4102C7858CFEE4E4, groupId, separationRange)
```

### JavaScript

```js
SetGroupSeparationRange(groupId, separationRange);

// by hash
Citizen.invokeNative('0x4102C7858CFEE4E4', groupId, separationRange + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x4102C7858CFEE4E4, groupId, separationRange);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
