RedM Natives

DOOR_SYSTEM_GET_OPEN_RATIO

Hash0x65499865FCA6E5EC
Runtime nameDoorSystemGetOpenRatio
NamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x65499865FCA6E5EC

Signature

float DOOR_SYSTEM_GET_OPEN_RATIO(Hash doorHash);

Parameters

NameTypeDescription
doorHashHash—

Returns float

Usage

Lua
local retval = DoorSystemGetOpenRatio(doorHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x65499865FCA6E5EC, doorHash, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = DoorSystemGetOpenRatio(doorHash);

// by hash
const retval = Citizen.invokeNative('0x65499865FCA6E5EC', doorHash, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x65499865FCA6E5EC, doorHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.