PedClient

setGroupSeparationRange

SET_GROUP_SEPARATION_RANGE0x4102C7858CFEE4E4

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

SignatureJavaScript
setGroupSeparationRange(groupHandle: number, separationRange: number): void
SignatureLua
setGroupSeparationRange(groupHandle: integer, separationRange: number)

Usage

JavaScript
setGroupSeparationRange(groupHandle, separationRange);
Lua
setGroupSeparationRange(groupHandle, separationRange)

Parameters

ParameterTypeJavaScriptLua
groupHandleintnumberinteger
separationRangefloatnumbernumber

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.

Sets the range at which members will automatically leave the group.

Reference

Namespace
Ped PED
In the game
void SET_GROUP_SEPARATION_RANGE(int groupHandle, float separationRange)
Hash
0x4102C7858CFEE4E4

Open in the interactive natives reference