The Lab
NETWORK native

GET_RESERVED_MISSION_ENTITIES_IN_AREA

returns void8 paramsbuild 1207

Writes the number of reserved mission peds, vehicles, objects and pickups near the given coordinates to the output pointers.

Signature

C
void GET_RESERVED_MISSION_ENTITIES_IN_AREA(float x, float y, float z, BOOL p3, int* peds, int* vehicles, int* objects, int* pickups); // 0x5E71E72A94985214 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4p3BOOL
5pedsint* (out pointer)
6vehiclesint* (out pointer)
7objectsint* (out pointer)
8pickupsint* (out pointer)

Facts

Facts about GET_RESERVED_MISSION_ENTITIES_IN_AREA
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.

Lua
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)
JavaScript
// 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)
C#
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>();
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.