NetworkClient1 output

networkCanAccessMultiplayer

NETWORK_CAN_ACCESS_MULTIPLAYER0xAF50DA1A3F8B1BA4

The GTA V native NETWORK_CAN_ACCESS_MULTIPLAYER of the NETWORK namespace, as LS:MP client scripts call it: the global function networkCanAccessMultiplayer, in JavaScript and in Lua.

SignatureJavaScript
networkCanAccessMultiplayer(): [ok: boolean, loadingState: number]
SignatureLua
networkCanAccessMultiplayer(): boolean, integer

Usage

JavaScript
const [ok, loadingState] = networkCanAccessMultiplayer();
Lua
local ok, loadingState = networkCanAccessMultiplayer()

Parameters

None. The game writes the output: it is handed back, not passed in.

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2loadingStateintnumberintegeroutput

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

11 - Need to download tunables.
12 - Need to download background script.

Returns 1 if the multiplayer is loaded, otherwhise 0.

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_CAN_ACCESS_MULTIPLAYER(int* loadingState)
Hash
0xAF50DA1A3F8B1BA4

Open in the interactive natives reference