RedM Natives

DOOR_SYSTEM_GET_DOOR_STATE

Hash0x160AA1B32F6139B8
Runtime nameDoorSystemGetDoorState
NamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x160AA1B32F6139B8

Signature

int DOOR_SYSTEM_GET_DOOR_STATE(Hash doorHash);

Parameters

NameTypeDescription
doorHashHash—

Returns int

Usage

Lua
local retval = DoorSystemGetDoorState(doorHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x160AA1B32F6139B8, doorHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = DoorSystemGetDoorState(doorHash);

// by hash
const retval = Citizen.invokeNative('0x160AA1B32F6139B8', doorHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x160AA1B32F6139B8, 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`.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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