PedClient

setGroupFormationSpacing

SET_GROUP_FORMATION_SPACING0x1D9D45004C28C916

The 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.

SignatureJavaScript
setGroupFormationSpacing(
  groupId: number,
  x: number,
  y: number,
  z: number
): void
SignatureLua
setGroupFormationSpacing(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

ParameterTypeJavaScriptLua
groupIdintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

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

Open in the interactive natives reference