ADD_FORMATION_LOCATION
Adds a formation location to the group groupId, returning true on success.
Signature
BOOL ADD_FORMATION_LOCATION(int groupId, float p1, float p2, float p3); // 0xB05945C1E9E60D91 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | groupId | int |
| 2 | p1 | float |
| 3 | p2 | float |
| 4 | p3 | float |
Facts
| 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.
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// 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) {
// ...
}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
);Related PED natives
- ADD_CUSTOM_FORMATION_LOCATION
- ADD_ARMOUR_TO_PED
- ADD_RELATIONSHIP_GROUP
- ADD_SCENARIO_BLOCKING_AREA
- _ADD_PED_STAY_OUT_VOLUME
- _ADD_PED_SUBSCRIBE_TO_LEGENDARY_BLIPS
- _ADD_SCENARIO_BLOCKING_VOLUME
- _ADD_SCENARIO_TRANSITION
- _ADD_TEXTURE_LAYER
- _GET_GROUP_FORMATION
- _SET_FORMATION_AUTO_ASSIGN_POSITION
- _SET_PED_FORMATION_POSITION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.