DOOR_SYSTEM_SET_DOOR_STATE
Door lock states: DOORSTATE_UNLOCKED, DOORSTATE_LOCKED_UNBREAKABLE, DOORSTATE_LOCKED_BREAKABLE, DOORSTATE_HOLD_OPEN_POSITIVE, DOORSTATE_HOLD_OPEN_NEGATIVE
Hash
0x6BAB9442830C7F53Runtime name
DoorSystemSetDoorStateNamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6BAB9442830C7F53Signature
void DOOR_SYSTEM_SET_DOOR_STATE(Hash doorHash, int state);Parameters
| Name | Type | Description |
|---|---|---|
doorHash | Hash | — |
state | int | — |
Returns void
Description
Door lock states:
enum eDoorState
{
DOORSTATE_INVALID = -1,
DOORSTATE_UNLOCKED,
DOORSTATE_LOCKED_UNBREAKABLE,
DOORSTATE_LOCKED_BREAKABLE,
DOORSTATE_HOLD_OPEN_POSITIVE,
DOORSTATE_HOLD_OPEN_NEGATIVE
};Usage
DoorSystemSetDoorState(doorHash, state)
-- always works, by hash
Citizen.InvokeNative(0x6BAB9442830C7F53, doorHash, state)JavaScript and C#
DoorSystemSetDoorState(doorHash, state);
// by hash
Citizen.invokeNative('0x6BAB9442830C7F53', doorHash, state);Function.Call((Hash)0x6BAB9442830C7F53, doorHash, state);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Enums and flags
- DoorScriptState 5 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.