setGroupFormation
SET_GROUP_FORMATION0xCE2F5FC3AF7E8C1EThe 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.
setGroupFormation(groupId: number, formationType: number): voidsetGroupFormation(groupId: integer, formationType: integer)Usage
JavaScript
setGroupFormation(groupId, formationType);Lua
setGroupFormation(groupId, formationType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
groupId | int | number | integer |
formationType | int | number | integer |
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