SET_FORMATION_POSITIONS_TARGET_RADIUS
Sets the target radius for formation positions in the group groupId.
Signature
BOOL SET_FORMATION_POSITIONS_TARGET_RADIUS(int groupId, float radius); // 0x7CC7D3B7AF7FB71F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | groupId | int |
| 2 | radius | float |
Facts
| Name | SET_FORMATION_POSITIONS_TARGET_RADIUS |
|---|---|
| Hash | 0x7CC7D3B7AF7FB71F |
| 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(0x7CC7D3B7AF7FB71F, -- SET_FORMATION_POSITIONS_TARGET_RADIUS
0, -- int groupId
0.0 -- float radius
)
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("0x7CC7D3B7AF7FB71F", // SET_FORMATION_POSITIONS_TARGET_RADIUS
0, // int groupId
0.0, // float radius
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x7CC7D3B7AF7FB71F, // SET_FORMATION_POSITIONS_TARGET_RADIUS
0, // int groupId
0.0f // float radius
);Related PED natives
- SET_GROUP_FORMATION
- SET_GROUP_FORMATION_SPACING
- SET_IK_TARGET
- SET_PED_TARGET_LOSS_RESPONSE
- _SET_FORMATION_AUTO_ASSIGN_POSITION
- _SET_PED_FORMATION_POSITION
- _SET_PED_TARGET_ACTION_DISABLE_FLAG
- COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
- SET_FACIAL_IDLE_ANIM_OVERRIDE
- SET_AI_MELEE_WEAPON_DAMAGE_MODIFIER
- SET_AI_WEAPON_DAMAGE_MODIFIER
- SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.