PedClient

setGroupFormation

SET_GROUP_FORMATION0xCE2F5FC3AF7E8C1E

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

SignatureJavaScript
setGroupFormation(groupId: number, formationType: number): void
SignatureLua
setGroupFormation(groupId: integer, formationType: integer)

Usage

JavaScript
setGroupFormation(groupId, formationType);
Lua
setGroupFormation(groupId, formationType)

Parameters

ParameterTypeJavaScriptLua
groupIdintnumberinteger
formationTypeintnumberinteger

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.

0: Default
1: Circle Around Leader
2: Alternative Circle Around Leader
3: Line, with Leader at center

Reference

Namespace
Ped PED
In the game
void SET_GROUP_FORMATION(int groupId, int formationType)
Hash
0xCE2F5FC3AF7E8C1E

Open in the interactive natives reference