DOOR_SYSTEM_GET_DOOR_STATE
Returns the current state of the registered door, such as unlocked or locked.
Signature
int DOOR_SYSTEM_GET_DOOR_STATE(Hash doorHash); // 0x160AA1B32F6139B8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
Facts
| Name | DOOR_SYSTEM_GET_DOOR_STATE |
|---|---|
| Hash | 0x160AA1B32F6139B8 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x160AA1B32F6139B8, -- DOOR_SYSTEM_GET_DOOR_STATE
GetHashKey("name"), -- Hash doorHash
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x160AA1B32F6139B8", // DOOR_SYSTEM_GET_DOOR_STATE
GetHashKey("name"), // Hash doorHash
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x160AA1B32F6139B8, // DOOR_SYSTEM_GET_DOOR_STATE
(uint)API.GetHashKey("name") // Hash doorHash
);Related OBJECT natives
- DOOR_SYSTEM_SET_DOOR_STATE
- DOOR_SYSTEM_GET_OPEN_RATIO
- DOOR_SYSTEM_SET_AUTOMATIC_DISTANCE
- DOOR_SYSTEM_SET_AUTOMATIC_RATE
- DOOR_SYSTEM_SET_OPEN_RATIO
- _DOOR_SYSTEM_GET_AUTOMATIC_RATE
- _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_SET_AUTOMATIC_STATE
- _ADD_DOOR_TO_SYSTEM_NEW
- _DOOR_SYSTEM_CHANGE_SCRIPT_OWNER
- _DOOR_SYSTEM_CHECK_ACTION_FLAG
- _DOOR_SYSTEM_CLEAR_FORCED_OPEN_PLAYER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.