networkCanAccessMultiplayer
NETWORK_CAN_ACCESS_MULTIPLAYER0xAF50DA1A3F8B1BA4The 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.
networkCanAccessMultiplayer(): [ok: boolean, loadingState: number]networkCanAccessMultiplayer(): boolean, integerUsage
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.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | loadingState | int | number | integer | output |
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