GET_SCENARIO_POINTS_IN_AREA
Writes up to size scenario points within radius of the given position into scenariosInRadius and returns the count.
Signature
int GET_SCENARIO_POINTS_IN_AREA(float posX, float posY, float posZ, float radius, Any* scenariosInRadius, int size); // 0x345EC3B7EBDE1CB5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | posX | float |
| 2 | posY | float |
| 3 | posZ | float |
| 4 | radius | float |
| 5 | scenariosInRadius | Any* (out pointer) |
| 6 | size | int |
Facts
| Name | GET_SCENARIO_POINTS_IN_AREA |
|---|---|
| Hash | 0x345EC3B7EBDE1CB5 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, scenariosInRadius = Citizen.InvokeNative(0x345EC3B7EBDE1CB5, -- GET_SCENARIO_POINTS_IN_AREA
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0.0, -- float radius
Citizen.PointerValueInt(), -- Any* scenariosInRadius
0, -- int size
Citizen.ResultAsInteger()
)
print(result, scenariosInRadius)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [result, scenariosInRadius] = Citizen.invokeNative("0x345EC3B7EBDE1CB5", // GET_SCENARIO_POINTS_IN_AREA
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0.0, // float radius
Citizen.pointerValueInt(), // Any* scenariosInRadius
0, // int size
Citizen.resultAsInteger()
);
console.log(result, scenariosInRadius)var scenariosInRadiusArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x345EC3B7EBDE1CB5, // GET_SCENARIO_POINTS_IN_AREA
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0.0f, // float radius
scenariosInRadiusArg, // Any* scenariosInRadius
0 // int size
);
int scenariosInRadius = scenariosInRadiusArg.GetResult<int>();Related TASK natives
- _GET_LINKED_SCENARIO_POINTS
- DOES_SCENARIO_EXIST_IN_AREA
- DOES_SCENARIO_OF_TYPE_EXIST_IN_AREA_HASH
- GET_IS_PED_AIMING_IN_THE_AIR
- GET_PROP_FOR_SCENARIO_POINT
- GET_RANSACK_SCENARIO_POINT_PED_IS_USING
- _GET_PED_USING_SCENARIO_POINT
- _GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS
- _GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS
- _GET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE
- _GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT
- _GET_SCENARIO_POINT_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.