setPedCanTeleportToGroupLeader
SET_PED_CAN_TELEPORT_TO_GROUP_LEADER0x2E2F4240B3F24647The 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.
setPedCanTeleportToGroupLeader(
pedHandle: Ped,
groupHandle: number,
toggle: boolean
): voidsetPedCanTeleportToGroupLeader(
pedHandle: Ped,
groupHandle: integer,
toggle: boolean
)Usage
JavaScript
setPedCanTeleportToGroupLeader(pedHandle, groupHandle, toggle);Lua
setPedCanTeleportToGroupLeader(pedHandle, groupHandle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pedHandle | Ped | number | integer |
groupHandle | int | number | integer |
toggle | BOOL | boolean | boolean |
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