RedM Natives

SET_PED_CAN_TELEPORT_TO_GROUP_LEADER

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

Hash0x2E2F4240B3F24647
Runtime nameSetPedCanTeleportToGroupLeader
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2E2F4240B3F24647

Signature

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

Parameters

NameTypeDescription
pedHandlePed—
groupIdint—
toggleBOOL—

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
SetPedCanTeleportToGroupLeader(pedHandle, groupId, toggle)

-- always works, by hash
Citizen.InvokeNative(0x2E2F4240B3F24647, pedHandle, groupId, toggle)
JavaScript and C#
JavaScript
SetPedCanTeleportToGroupLeader(pedHandle, groupId, toggle);

// by hash
Citizen.invokeNative('0x2E2F4240B3F24647', pedHandle, groupId, toggle);
C#
Function.Call((Hash)0x2E2F4240B3F24647, pedHandle, groupId, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.