NETWORK_IS_HOST
If you are host, returns true else returns false.
Hash
0x8DB296B814EDDA07Runtime name
NetworkIsHostNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8DB296B814EDDA07Signature
BOOL NETWORK_IS_HOST();Returns BOOL
Description
If you are host, returns true else returns false.
Usage
local retval = NetworkIsHost()
-- always works, by hash
local retval = Citizen.InvokeNative(0x8DB296B814EDDA07, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = NetworkIsHost();
// by hash
const retval = Citizen.invokeNative('0x8DB296B814EDDA07', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x8DB296B814EDDA07);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.