networkIsHost
NETWORK_IS_HOST0x8DB296B814EDDA07The 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.
networkIsHost(): booleannetworkIsHost(): booleanUsage
JavaScript
const result = networkIsHost();Lua
local result = networkIsHost()Parameters
None.
Returns
BOOL JavaScript boolean, Lua booleanNotes
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