PedClient

setPedCanTeleportToGroupLeader

SET_PED_CAN_TELEPORT_TO_GROUP_LEADER0x2E2F4240B3F24647

The GTA V native SET_PED_CAN_TELEPORT_TO_GROUP_LEADER of the PED namespace, as LS:MP client scripts call it: the global function setPedCanTeleportToGroupLeader, in JavaScript and in Lua.

SignatureJavaScript
setPedCanTeleportToGroupLeader(
  pedHandle: Ped,
  groupHandle: number,
  toggle: boolean
): void
SignatureLua
setPedCanTeleportToGroupLeader(
  pedHandle: Ped,
  groupHandle: integer,
  toggle: boolean
)

Usage

JavaScript
setPedCanTeleportToGroupLeader(pedHandle, groupHandle, toggle);
Lua
setPedCanTeleportToGroupLeader(pedHandle, groupHandle, toggle)

Parameters

ParameterTypeJavaScriptLua
pedHandlePednumberinteger
groupHandleintnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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

Only works in singleplayer

Reference

Namespace
Ped PED
In the game
void SET_PED_CAN_TELEPORT_TO_GROUP_LEADER(Ped pedHandle, int groupHandle, BOOL toggle)
Hash
0x2E2F4240B3F24647

Open in the interactive natives reference