# CFX::GET_ALL_VEHICLES

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

## Signature

```c
object GET_ALL_VEHICLES();
```

## Returns

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

## Description

*Source: Cfx.re native reference*

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

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

## Usage

### Lua

```lua
local retval = GetAllVehicles()

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

### JavaScript

```js
const retval = GetAllVehicles();

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

### C#

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

*Sources: Cfx.re native reference.*
