# CFX::GET_ALL_OBJECTS

- **Hash:** `0x6886C3FE`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetAllObjects`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_ALL_OBJECTS

## Signature

```c
object GET_ALL_OBJECTS();
```

## Returns

`object` — An object containing a list of object handles.

## Description

*Source: Cfx.re native reference*

Returns all object handles known to the server.
The data returned adheres to the following layout:

```
[127, 42, 13, 37]
```

## Usage

### Lua

```lua
local retval = GetAllObjects()

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

### JavaScript

```js
const retval = GetAllObjects();

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

### C#

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

*Sources: Cfx.re native reference.*
