# NETWORK::NETWORK_REQUEST_SESSION_SEAMLESS

- **Hash:** `0x04019AE4956D4393`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `NetworkRequestSessionSeamless`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/NETWORK_REQUEST_SESSION_SEAMLESS

## Signature

```c
BOOL NETWORK_REQUEST_SESSION_SEAMLESS(int flags, int seamlessType, Any* sessionRequestId);
```

## Parameters

- `flags` (`int`)
- `seamlessType` (`int`)
- `sessionRequestId` (`Any*`)

## Returns

`BOOL`

## Description

flags:
enum eSessionRequestOptionFlags
{
	SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
	SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
};

seamlessType:
enum eSeamlessType
{
	SEAMLESS_TYPE_NORMAL,
	SEAMLESS_TYPE_PVE,
	SEAMLESS_TYPE_DEV,
	SEAMLESS_TYPE_NO_SEAMLESS
};

## Usage

### Lua

```lua
local retval, sessionRequestId = NetworkRequestSessionSeamless(flags, seamlessType, sessionRequestId)

-- always available, by hash
local retval, sessionRequestId = Citizen.InvokeNative(0x04019AE4956D4393, flags, seamlessType, Citizen.PointerValueIntInitialized(sessionRequestId), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, sessionRequestId] = NetworkRequestSessionSeamless(flags, seamlessType, sessionRequestId);

// by hash
const [retval, sessionRequestId] = Citizen.invokeNative('0x04019AE4956D4393', flags, seamlessType, Citizen.pointerValueIntInitialized(sessionRequestId), Citizen.returnResultAnyway());
```

### C#

```csharp
var sessionRequestId = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x04019AE4956D4393, flags, seamlessType, sessionRequestId);
// sessionRequestId.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.

*Sources: alloc8or RDR3 NativeDB.*
