ObjectClient

doorSystemSetHoldOpen

DOOR_SYSTEM_SET_HOLD_OPEN0xD9B71952F78A2640

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

SignatureJavaScript
doorSystemSetHoldOpen(doorHash: Hash, toggle: boolean): void
SignatureLua
doorSystemSetHoldOpen(doorHash: Hash, toggle: boolean)

Usage

JavaScript
doorSystemSetHoldOpen(doorHash, toggle);
Lua
doorSystemSetHoldOpen(doorHash, toggle)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Includes networking check: ownership vs. or the door itself isn't networked.

Reference

Namespace
Object OBJECT
In the game
void DOOR_SYSTEM_SET_HOLD_OPEN(Hash doorHash, BOOL toggle)
Hash
0xD9B71952F78A2640

Open in the interactive natives reference