doorSystemSetHoldOpen
DOOR_SYSTEM_SET_HOLD_OPEN0xD9B71952F78A2640The 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.
doorSystemSetHoldOpen(doorHash: Hash, toggle: boolean): voiddoorSystemSetHoldOpen(doorHash: Hash, toggle: boolean)Usage
JavaScript
doorSystemSetHoldOpen(doorHash, toggle);Lua
doorSystemSetHoldOpen(doorHash, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
doorHash | Hash | number | integer |
toggle | BOOL | boolean | boolean |
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