NetworkClient

networkIsHostOfThisScript

NETWORK_IS_HOST_OF_THIS_SCRIPT0x83CD99A1E6061AB5

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

SignatureJavaScript
networkIsHostOfThisScript(): boolean
SignatureLua
networkIsHostOfThisScript(): boolean

Usage

JavaScript
const result = networkIsHostOfThisScript();
Lua
local result = networkIsHostOfThisScript()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_HOST_OF_THIS_SCRIPT()
Hash
0x83CD99A1E6061AB5

Open in the interactive natives reference