DOOR_SYSTEM_GET_OPEN_RATIO
Returns how far the registered door is open, from -1.0 to 1.0 depending on direction.
Signature
float DOOR_SYSTEM_GET_OPEN_RATIO(Hash doorHash); // 0x65499865FCA6E5EC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
Facts
| Name | DOOR_SYSTEM_GET_OPEN_RATIO |
|---|---|
| Hash | 0x65499865FCA6E5EC |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x65499865FCA6E5EC, -- DOOR_SYSTEM_GET_OPEN_RATIO
GetHashKey("name"), -- Hash doorHash
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0x65499865FCA6E5EC", // DOOR_SYSTEM_GET_OPEN_RATIO
GetHashKey("name"), // Hash doorHash
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0x65499865FCA6E5EC, // DOOR_SYSTEM_GET_OPEN_RATIO
(uint)API.GetHashKey("name") // Hash doorHash
);Related OBJECT natives
- DOOR_SYSTEM_GET_DOOR_STATE
- DOOR_SYSTEM_SET_OPEN_RATIO
- DOOR_SYSTEM_SET_DOOR_STATE
- _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_SET_ABLE_TO_CHANGE_OPEN_RATIO_WHILE_LOCKED
- DOOR_SYSTEM_SET_AUTOMATIC_DISTANCE
- DOOR_SYSTEM_SET_AUTOMATIC_RATE
- _DOOR_SYSTEM_CLEAR_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_GET_AUTOMATIC_RATE
- _DOOR_SYSTEM_SWING_OPEN
- _ADD_DOOR_TO_SYSTEM_NEW
- _DOOR_SYSTEM_CHANGE_SCRIPT_OWNER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.