DOES_SCENARIO_EXIST_IN_AREA
Returns true if a scenario point exists within radius of (x, y, z).
Signature
BOOL DOES_SCENARIO_EXIST_IN_AREA(float x, float y, float z, float radius, BOOL p4, Any p5, BOOL p6); // 0x5A59271FFADD33C1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | p4 | BOOL |
| 6 | p5 | Any |
| 7 | p6 | BOOL |
Facts
| Name | DOES_SCENARIO_EXIST_IN_AREA |
|---|---|
| Hash | 0x5A59271FFADD33C1 |
| 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(0x5A59271FFADD33C1, -- DOES_SCENARIO_EXIST_IN_AREA
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
false, -- BOOL p4
0, -- Any p5
false -- BOOL p6
)
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("0x5A59271FFADD33C1", // DOES_SCENARIO_EXIST_IN_AREA
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
false, // BOOL p4
0, // Any p5
false, // BOOL p6
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x5A59271FFADD33C1, // DOES_SCENARIO_EXIST_IN_AREA
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
false, // BOOL p4
0, // Any p5
false // BOOL p6
);Related TASK natives
- DOES_SCENARIO_OF_TYPE_EXIST_IN_AREA_HASH
- DOES_SCENARIO_GROUP_EXIST
- DOES_SCENARIO_POINT_EXIST
- _DOES_SCENARIO_GROUP_EXIST_HASH
- GET_SCENARIO_POINTS_IN_AREA
- DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS
- _DOES_SCENARIO_POINT_HAVE_PROPS
- _IS_SCENARIO_IN_USE
- _PED_IS_IN_SCENARIO_BASE
- _TASK_START_SCENARIO_IN_PLACE_2
- IS_PED_ACTIVE_IN_SCENARIO
- TASK_COMBAT_HATED_TARGETS_IN_AREA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.