# PED::SET_PED_CAN_TELEPORT_TO_GROUP_LEADER

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

## Signature

```c
void SET_PED_CAN_TELEPORT_TO_GROUP_LEADER(Ped pedHandle, int groupId, BOOL toggle);
```

## Parameters

- `pedHandle` (`Ped`)
- `groupId` (`int`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

This only will teleport the ped to the group leader if the group leader teleports (sets coords).

Only works in singleplayer

## Usage

### Lua

```lua
SetPedCanTeleportToGroupLeader(pedHandle, groupId, toggle)

-- always available, by hash
Citizen.InvokeNative(0x2E2F4240B3F24647, pedHandle, groupId, toggle)
```

### JavaScript

```js
SetPedCanTeleportToGroupLeader(pedHandle, groupId, toggle);

// by hash
Citizen.invokeNative('0x2E2F4240B3F24647', pedHandle, groupId, toggle);
```

### C#

```csharp
Function.Call((Hash)0x2E2F4240B3F24647, pedHandle, groupId, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
