ObjectClient

doorSystemGetDoorState

DOOR_SYSTEM_GET_DOOR_STATE0x160AA1B32F6139B8

The GTA V native DOOR_SYSTEM_GET_DOOR_STATE of the OBJECT namespace, as LS:MP client scripts call it: the global function doorSystemGetDoorState, in JavaScript and in Lua.

SignatureJavaScript
doorSystemGetDoorState(doorHash: Hash): number
SignatureLua
doorSystemGetDoorState(doorHash: Hash): integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Object OBJECT
In the game
int DOOR_SYSTEM_GET_DOOR_STATE(Hash doorHash)
Hash
0x160AA1B32F6139B8

Open in the interactive natives reference