# CFX::GET_VEHICLE_TYPE

- **Hash:** `0xA273060E`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleType`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_TYPE

## Signature

```c
char* GET_VEHICLE_TYPE(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`) — The vehicle's entity handle.

## Returns

`char*` — If the entity is a vehicle, the vehicle type. If it is not a vehicle, the return value will be null.

## Description

*Source: Cfx.re native reference*

Returns the type of the passed vehicle.

For client scripts, reference the more detailed [GET_VEHICLE_TYPE_RAW](#\_0xDE73BC10) native.

### Vehicle types

*   automobile
*   bike
*   boat
*   heli
*   plane
*   submarine
*   trailer
*   train

## Usage

### Lua

```lua
local retval = GetVehicleType(vehicle)

-- always available, by hash
local retval = Citizen.InvokeNative(0xa273060e, vehicle, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetVehicleType(vehicle);

// by hash
const retval = Citizen.invokeNative('0xa273060e', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0xa273060e, vehicle);
```

*Sources: Cfx.re native reference.*
