# CFX::GET_VEHICLE_TYPE_RAW

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

## Signature

```c
int GET_VEHICLE_TYPE_RAW(Vehicle vehicle);
```

## Parameters

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

## Returns

`int` — Returns the vehicles model type

## Description

*Source: Cfx.re native reference*

Returns the model type of the vehicle as defined by:

```cpp
enum VehicleType
{
	VEHICLE_TYPE_NONE = -1,
	VEHICLE_TYPE_CAR = 0,
	VEHICLE_TYPE_PLANE = 1,
	VEHICLE_TYPE_TRAILER = 2,
	VEHICLE_TYPE_QUADBIKE = 3,
	VEHICLE_TYPE_DRAFT = 4,
	VEHICLE_TYPE_SUBMARINECAR = 5,
	VEHICLE_TYPE_AMPHIBIOUS_AUTOMOBILE = 6,
	VEHICLE_TYPE_AMPHIBIOUS_QUADBIKE = 7,
	VEHICLE_TYPE_HELI = 8,
	VEHICLE_TYPE_BLIMP = 9,
	VEHICLE_TYPE_AUTOGYRO = 10,
	VEHICLE_TYPE_BIKE = 11,
	VEHICLE_TYPE_BICYCLE = 12,
	VEHICLE_TYPE_BOAT = 13,
	VEHICLE_TYPE_TRAIN = 14,
	VEHICLE_TYPE_SUBMARINE = 15,
};
```

## Usage

### Lua

```lua
local retval = GetVehicleTypeRaw(vehicle)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
