The Lab
NETWORK native

NETWORK_IS_SESSION_STARTED

returns BOOL0 paramsbuild 1207

Returns true if the network session has started.

Signature

C
BOOL NETWORK_IS_SESSION_STARTED(); // 0x9DE624D2FC4B603F b1207

Parameters

This native takes no parameters.

Facts

Facts about NETWORK_IS_SESSION_STARTED
Name
NETWORK_IS_SESSION_STARTED
Hash
0x9DE624D2FC4B603F
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x9DE624D2FC4B603F) -- NETWORK_IS_SESSION_STARTED
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x9DE624D2FC4B603F", // NETWORK_IS_SESSION_STARTED
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x9DE624D2FC4B603F); // NETWORK_IS_SESSION_STARTED
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.