GET_RESERVED_MISSION_ENTITIES_IN_AREA
Writes the number of reserved mission peds, vehicles, objects and pickups near the given coordinates to the output pointers.
Signature
void GET_RESERVED_MISSION_ENTITIES_IN_AREA(float x, float y, float z, BOOL p3, int* peds, int* vehicles, int* objects, int* pickups); // 0x5E71E72A94985214 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | p3 | BOOL |
| 5 | peds | int* (out pointer) |
| 6 | vehicles | int* (out pointer) |
| 7 | objects | int* (out pointer) |
| 8 | pickups | int* (out pointer) |
Facts
| Name | GET_RESERVED_MISSION_ENTITIES_IN_AREA |
|---|---|
| Hash | 0x5E71E72A94985214 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local peds, vehicles, objects, pickups = Citizen.InvokeNative(0x5E71E72A94985214, -- GET_RESERVED_MISSION_ENTITIES_IN_AREA
0.0, -- float x
0.0, -- float y
0.0, -- float z
false, -- BOOL p3
Citizen.PointerValueInt(), -- int* peds
Citizen.PointerValueInt(), -- int* vehicles
Citizen.PointerValueInt(), -- int* objects
Citizen.PointerValueInt() -- int* pickups
)
print(peds, vehicles, objects, pickups)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [peds, vehicles, objects, pickups] = Citizen.invokeNative("0x5E71E72A94985214", // GET_RESERVED_MISSION_ENTITIES_IN_AREA
0.0, // float x
0.0, // float y
0.0, // float z
false, // BOOL p3
Citizen.pointerValueInt(), // int* peds
Citizen.pointerValueInt(), // int* vehicles
Citizen.pointerValueInt(), // int* objects
Citizen.pointerValueInt() // int* pickups
);
console.log(peds, vehicles, objects, pickups)var pedsArg = new OutputArgument();
var vehiclesArg = new OutputArgument();
var objectsArg = new OutputArgument();
var pickupsArg = new OutputArgument();
Function.Call((Hash)0x5E71E72A94985214, // GET_RESERVED_MISSION_ENTITIES_IN_AREA
0.0f, // float x
0.0f, // float y
0.0f, // float z
false, // BOOL p3
pedsArg, // int* peds
vehiclesArg, // int* vehicles
objectsArg, // int* objects
pickupsArg // int* pickups
);
int peds = pedsArg.GetResult<int>();
int vehicles = vehiclesArg.GetResult<int>();
int objects = objectsArg.GetResult<int>();
int pickups = pickupsArg.GetResult<int>();Related NETWORK natives
- _GET_RESERVED_MISSION_ENTITIES_FOR_THREAD
- GET_NUM_RESERVED_MISSION_OBJECTS
- GET_NUM_RESERVED_MISSION_PEDS
- GET_NUM_RESERVED_MISSION_VEHICLES
- _GET_NUM_RESERVED_MISSION_PICKUPS
- GET_NUM_CREATED_MISSION_OBJECTS
- GET_NUM_CREATED_MISSION_PEDS
- GET_NUM_CREATED_MISSION_VEHICLES
- _GET_NUM_CREATED_MISSION_PICKUPS
- _UGC_QUERY_GET_MISSION_DESC_HASH
- CAN_REGISTER_MISSION_ENTITIES
- PREVENT_MIGRATION_OF_ENTITIES_IN_FAST_INSTANCE_FOR_LOCAL_PLAYER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.