ObjectClient

isDoorClosed

IS_DOOR_CLOSED0xC531EE8A1145A149

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Object OBJECT
In the game
BOOL IS_DOOR_CLOSED(Hash doorHash)
Hash
0xC531EE8A1145A149

Open in the interactive natives reference