# CFX::DOOR_SYSTEM_GET_ACTIVE

- **Hash:** `0xF65BBA4B`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `DoorSystemGetActive`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/DOOR_SYSTEM_GET_ACTIVE

## Signature

```c
object DOOR_SYSTEM_GET_ACTIVE();
```

## Returns

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

## Description

*Source: Cfx.re native reference*

Returns a list of door system entries: a door system hash (see [ADD_DOOR_TO_SYSTEM](#\_0x6F8838D03D1DC226)) and its object handle.

The data returned adheres to the following layout:

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

## Usage

### Lua

```lua
local retval = DoorSystemGetActive()

-- always available, by hash
local retval = Citizen.InvokeNative(0xf65bba4b, Citizen.ResultAsObject2(msgpack.unpack))
```

### JavaScript

```js
const retval = DoorSystemGetActive();

// by hash
const retval = Citizen.invokeNative('0xf65bba4b', Citizen.returnResultAnyway(), Citizen.resultAsObject2());
```

### C#

```csharp
Function.Call((Hash)0xf65bba4b);
```

*Sources: Cfx.re native reference.*
