setGroupFormationSpacing
SET_GROUP_FORMATION_SPACING0x1D9D45004C28C916The GTA V native SET_GROUP_FORMATION_SPACING of the PED namespace, as LS:MP client scripts call it: the global function setGroupFormationSpacing, in JavaScript and in Lua.
setGroupFormationSpacing(
groupId: number,
x: number,
y: number,
z: number
): voidsetGroupFormationSpacing(groupId: integer, x: number, y: number, z: number)Usage
JavaScript
setGroupFormationSpacing(groupId, x, y, z);Lua
setGroupFormationSpacing(groupId, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setGroupFormationSpacing(groupId, pos);Lua · with vectors
setGroupFormationSpacing(groupId, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
groupId | int | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Ped PED
- In the game
void SET_GROUP_FORMATION_SPACING(int groupId, float x, float y, float z)- Hash
0x1D9D45004C28C916