ObjectClient

doorSystemGetOpenRatio

DOOR_SYSTEM_GET_OPEN_RATIO0x65499865FCA6E5EC

The GTA V native DOOR_SYSTEM_GET_OPEN_RATIO of the OBJECT namespace, as LS:MP client scripts call it: the global function doorSystemGetOpenRatio, in JavaScript and in Lua.

SignatureJavaScript
doorSystemGetOpenRatio(doorHash: Hash): number
SignatureLua
doorSystemGetOpenRatio(doorHash: Hash): number

Usage

JavaScript
const value = doorSystemGetOpenRatio(doorHash);
Lua
local value = doorSystemGetOpenRatio(doorHash)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Object OBJECT
In the game
float DOOR_SYSTEM_GET_OPEN_RATIO(Hash doorHash)
Hash
0x65499865FCA6E5EC

Open in the interactive natives reference