The Lab
PED native

_SET_FORMATION_AUTO_ASSIGN_POSITION

returns void2 paramsbuild 1207

Controls whether members of the group groupId are automatically assigned formation positions.

Signature

C
void _SET_FORMATION_AUTO_ASSIGN_POSITION(int groupId, BOOL toggle); // 0x478F6B9920446CE2 b1207

Parameters

#NameType
1groupIdint
2toggleBOOL

Facts

Facts about _SET_FORMATION_AUTO_ASSIGN_POSITION
Name
_SET_FORMATION_AUTO_ASSIGN_POSITION
Hash
0x478F6B9920446CE2
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x478F6B9920446CE2, -- _SET_FORMATION_AUTO_ASSIGN_POSITION
  0, -- int groupId
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x478F6B9920446CE2", // _SET_FORMATION_AUTO_ASSIGN_POSITION
  0, // int groupId
  false // BOOL toggle
);
C#
Function.Call((Hash)0x478F6B9920446CE2, // _SET_FORMATION_AUTO_ASSIGN_POSITION
  0, // int groupId
  false // BOOL toggle
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.