GET_RESERVED_MISSION_ENTITIES_IN_AREA
Used in Script Function NET_ACE_CLIENT_VERIFY_ENTITY_RESERVATIONS Old name: _GET_RESERVATIONS_FOR_SLOT_WORLD_POSITION
Hash
0x5E71E72A94985214Runtime name
GetReservedMissionEntitiesInAreaNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE42D626EEC94E5D9Signature
void GET_RESERVED_MISSION_ENTITIES_IN_AREA(float x, float y, float z, BOOL p3, int* peds, int* vehicles, int* objects, int* pickups);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
y | float | — |
z | float | — |
p3 | BOOL | — |
peds | int* | — |
vehicles | int* | — |
objects | int* | — |
pickups | int* | — |
Returns void
Description
Used in Script Function NET_ACE_CLIENT_VERIFY_ENTITY_RESERVATIONS
Coords: Slot world position
Old name: _GET_RESERVATIONS_FOR_SLOT_WORLD_POSITION
Usage
local peds, vehicles, objects, pickups = GetReservedMissionEntitiesInArea(x, y, z, p3)
-- always works, by hash
local peds, vehicles, objects, pickups = Citizen.InvokeNative(0x5E71E72A94985214, x, y, z, p3, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())JavaScript and C#
const [peds, vehicles, objects, pickups] = GetReservedMissionEntitiesInArea(x, y, z, p3);
// by hash
const [peds, vehicles, objects, pickups] = Citizen.invokeNative('0x5E71E72A94985214', x + 0.0000001, y + 0.0000001, z + 0.0000001, p3, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());var peds = new OutputArgument();
var vehicles = new OutputArgument();
var objects = new OutputArgument();
var pickups = new OutputArgument();
Function.Call((Hash)0x5E71E72A94985214, x, y, z, p3, peds, vehicles, objects, pickups);
// peds.GetResult<int>()
// vehicles.GetResult<int>()
// objects.GetResult<int>()
// pickups.GetResult<int>()- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.