# NETWORK::_GET_RESERVED_MISSION_ENTITIES_FOR_THREAD

- **Hash:** `0x99AAC89C510DEB0D`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `GetReservedMissionEntitiesForThread`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1491
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/_GET_RESERVED_MISSION_ENTITIES_FOR_THREAD

## Signature

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

## Parameters

- `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

### Lua

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

-- always available, 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

```js
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#

```csharp
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.*
