RedM Natives

DOOR_SYSTEM_GET_ACTIVE

Returns a list of door system entries: a door system hash (see ADD_DOOR_TO_SYSTEM) and its object handle.

Hash0xF65BBA4B
Runtime nameDoorSystemGetActive
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

object DOOR_SYSTEM_GET_ACTIVE();

Returns object — An object containing a list of door system entries.

Description

Cfx.re native reference

Returns a list of door system entries: a door system hash (see ADD_DOOR_TO_SYSTEM) and its object handle.

The data returned adheres to the following layout:

[{doorHash1, doorHandle1}, ..., {doorHashN, doorHandleN}]

Usage

Lua
local retval = DoorSystemGetActive()

-- always works, by hash
local retval = Citizen.InvokeNative(0xf65bba4b, Citizen.ResultAsObject2(msgpack.unpack))
JavaScript and C#
JavaScript
const retval = DoorSystemGetActive();

// by hash
const retval = Citizen.invokeNative('0xf65bba4b', Citizen.returnResultAnyway(), Citizen.resultAsObject2());
C#
Function.Call((Hash)0xf65bba4b);

Sources

Cfx.re native reference

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