The Lab
PED native

ADD_FORMATION_LOCATION

returns BOOL4 paramsbuild 1207

Adds a formation location to the group groupId, returning true on success.

Signature

C
BOOL ADD_FORMATION_LOCATION(int groupId, float p1, float p2, float p3); // 0xB05945C1E9E60D91 b1207

Parameters

#NameType
1groupIdint
2p1float
3p2float
4p3float

Facts

Facts about ADD_FORMATION_LOCATION
Name
ADD_FORMATION_LOCATION
Hash
0xB05945C1E9E60D91
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xB05945C1E9E60D91, -- ADD_FORMATION_LOCATION
  0, -- int groupId
  0.0, -- float p1
  0.0, -- float p2
  0.0 -- float p3
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xB05945C1E9E60D91", // ADD_FORMATION_LOCATION
  0, // int groupId
  0.0, // float p1
  0.0, // float p2
  0.0, // float p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xB05945C1E9E60D91, // ADD_FORMATION_LOCATION
  0, // int groupId
  0.0f, // float p1
  0.0f, // float p2
  0.0f // float p3
);
All PED natives

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