# CFX::GET_VEHICLE_DIRT_LEVEL

- **Hash:** `0xFD15C065`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleDirtLevel`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_DIRT_LEVEL

## Signature

```c
float GET_VEHICLE_DIRT_LEVEL(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`)

## Returns

`float`

## Usage

### Lua

```lua
local retval = GetVehicleDirtLevel(vehicle)

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

### JavaScript

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

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

### C#

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

## See also

- [CFX::SET_VEHICLE_DIRT_LEVEL](https://natives.borderlinerp.com/natives/CFX/SET_VEHICLE_DIRT_LEVEL.md) — Sets the dirt level of the passed vehicle.

*Sources: Cfx.re native reference.*
