RedM Natives

SET_GROUP_FORMATION

eFormationType

Hash0xCE2F5FC3AF7E8C1E
Runtime nameSetGroupFormation
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCE2F5FC3AF7E8C1E

Signature

void SET_GROUP_FORMATION(int groupId, int formationType);

Parameters

NameTypeDescription
groupIdint—
formationTypeint—

Returns void

Description

eFormationType

0: Default
1: Circle Around Leader
2: Alternative Circle Around Leader
3: Line, with Leader at center

Usage

Lua
SetGroupFormation(groupId, formationType)

-- always works, by hash
Citizen.InvokeNative(0xCE2F5FC3AF7E8C1E, groupId, formationType)
JavaScript and C#
JavaScript
SetGroupFormation(groupId, formationType);

// by hash
Citizen.invokeNative('0xCE2F5FC3AF7E8C1E', groupId, formationType);
C#
Function.Call((Hash)0xCE2F5FC3AF7E8C1E, groupId, formationType);

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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