_GET_RESERVED_MISSION_ENTITIES_FOR_THREAD
Only used in R* Script net_stable_manager
Hash
0x99AAC89C510DEB0DRuntime name
GetReservedMissionEntitiesForThreadNamespaceNETWORK
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
| Name | Type | Description |
|---|---|---|
threadId | int | — |
pedMax | int* | — |
vehicleMax | int* | — |
unkMax | int* | — |
pedMin | int* | — |
vehicleMin | int* | — |
unkMin | int* | — |
Returns void
Description
Only used in R* Script net_stable_manager
Usage
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#
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());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.