RedM Natives

SET_GROUP_SEPARATION_RANGE

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

Hash0x4102C7858CFEE4E4
Runtime nameSetGroupSeparationRange
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4102C7858CFEE4E4

Signature

void SET_GROUP_SEPARATION_RANGE(int groupId, float separationRange);

Parameters

NameTypeDescription
groupIdint—
separationRangefloat—

Returns void

Description

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

Usage

Lua
SetGroupSeparationRange(groupId, separationRange)

-- always works, by hash
Citizen.InvokeNative(0x4102C7858CFEE4E4, groupId, separationRange)
JavaScript and C#
JavaScript
SetGroupSeparationRange(groupId, separationRange);

// by hash
Citizen.invokeNative('0x4102C7858CFEE4E4', groupId, separationRange + 0.0000001);
C#
Function.Call((Hash)0x4102C7858CFEE4E4, groupId, separationRange);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.