doorSystemSetDoorState
DOOR_SYSTEM_SET_DOOR_STATE0x6BAB9442830C7F53The GTA V native DOOR_SYSTEM_SET_DOOR_STATE of the OBJECT namespace, as LS:MP client scripts call it: the global function doorSystemSetDoorState, in JavaScript and in Lua.
doorSystemSetDoorState(
doorHash: Hash,
state: number,
requestDoor: boolean,
forceUpdate: boolean
): voiddoorSystemSetDoorState(
doorHash: Hash,
state: integer,
requestDoor: boolean,
forceUpdate: boolean
)Usage
JavaScript
doorSystemSetDoorState(doorHash, state, requestDoor, forceUpdate);Lua
doorSystemSetDoorState(doorHash, state, requestDoor, forceUpdate)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
doorHash | Hash | number | integer |
state | int | number | integer |
requestDoor | BOOL | boolean | boolean |
forceUpdate | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Object OBJECT
- In the game
void DOOR_SYSTEM_SET_DOOR_STATE(Hash doorHash, int state, BOOL requestDoor, BOOL forceUpdate)- Hash
0x6BAB9442830C7F53- Formerly
_SET_DOOR_ACCELERATION_LIMIT