NetworkClient

networkHasControlOfDoor

NETWORK_HAS_CONTROL_OF_DOOR0xCB3C68ADB06195DF

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

SignatureJavaScript
networkHasControlOfDoor(doorHash: Hash): boolean
SignatureLua
networkHasControlOfDoor(doorHash: Hash): boolean

Usage

JavaScript
const result = networkHasControlOfDoor(doorHash);
Lua
local result = networkHasControlOfDoor(doorHash)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_HAS_CONTROL_OF_DOOR(Hash doorHash)
Hash
0xCB3C68ADB06195DF

Open in the interactive natives reference