NetworkClient

networkIsHost

NETWORK_IS_HOST0x8DB296B814EDDA07

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

SignatureJavaScript
networkIsHost(): boolean
SignatureLua
networkIsHost(): boolean

Usage

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

If you are host, returns true else returns false.

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_HOST()
Hash
0x8DB296B814EDDA07

Open in the interactive natives reference