RedM Natives

_GET_RESERVED_MISSION_ENTITIES_FOR_THREAD

Only used in R* Script net_stable_manager

Hash0x99AAC89C510DEB0D
Runtime nameGetReservedMissionEntitiesForThread
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1491

Signature

void _GET_RESERVED_MISSION_ENTITIES_FOR_THREAD(int threadId, int* pedMax, int* vehicleMax, int* unkMax, int* pedMin, int* vehicleMin, int* unkMin);

Parameters

NameTypeDescription
threadIdint—
pedMaxint*—
vehicleMaxint*—
unkMaxint*—
pedMinint*—
vehicleMinint*—
unkMinint*—

Returns void

Description

Only used in R* Script net_stable_manager

Usage

Lua
local pedMax, vehicleMax, unkMax, pedMin, vehicleMin, unkMin = GetReservedMissionEntitiesForThread(threadId)

-- always works, by hash
local pedMax, vehicleMax, unkMax, pedMin, vehicleMin, unkMin = Citizen.InvokeNative(0x99AAC89C510DEB0D, threadId, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())
JavaScript and C#
JavaScript
const [pedMax, vehicleMax, unkMax, pedMin, vehicleMin, unkMin] = GetReservedMissionEntitiesForThread(threadId);

// by hash
const [pedMax, vehicleMax, unkMax, pedMin, vehicleMin, unkMin] = Citizen.invokeNative('0x99AAC89C510DEB0D', threadId, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());
C#
var pedMax = new OutputArgument();
var vehicleMax = new OutputArgument();
var unkMax = new OutputArgument();
var pedMin = new OutputArgument();
var vehicleMin = new OutputArgument();
var unkMin = new OutputArgument();
Function.Call((Hash)0x99AAC89C510DEB0D, threadId, pedMax, vehicleMax, unkMax, pedMin, vehicleMin, unkMin);
// pedMax.GetResult<int>()
// vehicleMax.GetResult<int>()
// unkMax.GetResult<int>()
// pedMin.GetResult<int>()
// vehicleMin.GetResult<int>()
// unkMin.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.