ObjectClient

doorSystemSetDoorState

DOOR_SYSTEM_SET_DOOR_STATE0x6BAB9442830C7F53

The 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.

SignatureJavaScript
doorSystemSetDoorState(
  doorHash: Hash,
  state: number,
  requestDoor: boolean,
  forceUpdate: boolean
): void
SignatureLua
doorSystemSetDoorState(
  doorHash: Hash,
  state: integer,
  requestDoor: boolean,
  forceUpdate: boolean
)

Usage

JavaScript
doorSystemSetDoorState(doorHash, state, requestDoor, forceUpdate);
Lua
doorSystemSetDoorState(doorHash, state, requestDoor, forceUpdate)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger
stateintnumberinteger
requestDoorBOOLbooleanboolean
forceUpdateBOOLbooleanboolean

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

Open in the interactive natives reference