DOOR_SYSTEM_SET_DOOR_STATE
Sets the state of the registered door, for example to lock or unlock it.
The door must be registered with the door system first.
Signature
void DOOR_SYSTEM_SET_DOOR_STATE(Hash doorHash, int state); // 0x6BAB9442830C7F53 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
| 2 | state | int |
Facts
| Name | DOOR_SYSTEM_SET_DOOR_STATE |
|---|---|
| Hash | 0x6BAB9442830C7F53 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x6BAB9442830C7F53, -- DOOR_SYSTEM_SET_DOOR_STATE
GetHashKey("name"), -- Hash doorHash
0 -- int state
)Citizen.invokeNative("0x6BAB9442830C7F53", // DOOR_SYSTEM_SET_DOOR_STATE
GetHashKey("name"), // Hash doorHash
0 // int state
);Function.Call((Hash)0x6BAB9442830C7F53, // DOOR_SYSTEM_SET_DOOR_STATE
(uint)API.GetHashKey("name"), // Hash doorHash
0 // int state
);Related OBJECT natives
- DOOR_SYSTEM_GET_DOOR_STATE
- DOOR_SYSTEM_SET_AUTOMATIC_DISTANCE
- DOOR_SYSTEM_SET_AUTOMATIC_RATE
- DOOR_SYSTEM_SET_OPEN_RATIO
- _DOOR_SYSTEM_SET_AUTOMATIC_STATE
- DOOR_SYSTEM_GET_OPEN_RATIO
- _DOOR_SYSTEM_SET_ABLE_TO_CHANGE_OPEN_RATIO_WHILE_LOCKED
- _ADD_DOOR_TO_SYSTEM_NEW
- _DOOR_SYSTEM_CHANGE_SCRIPT_OWNER
- _DOOR_SYSTEM_CHECK_ACTION_FLAG
- _DOOR_SYSTEM_CLEAR_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_FORCE_SHUT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.