# VEHICLE::_GET_DRAFT_VEHICLE_DESIRED_SPEED

- **Hash:** `0xC6D7DDC843176701`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `GetDraftVehicleDesiredSpeed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_GET_DRAFT_VEHICLE_DESIRED_SPEED

## Signature

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

## Parameters

- `vehicle` (`Vehicle`)

## Returns

`float`

## Description

Returns rage::NumericLimits<float>::kMax (3.402823466e+38) if vehicle is not a valid vehicle of type VEHICLE_TYPE_DRAFT.

## Usage

### Lua

```lua
local retval = GetDraftVehicleDesiredSpeed(vehicle)

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

### JavaScript

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

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

### C#

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

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [VEHICLE::_SET_DRAFT_VEHICLE_DESIRED_SPEED](https://natives.borderlinerp.com/natives/VEHICLE/_SET_DRAFT_VEHICLE_DESIRED_SPEED.md)

*Sources: alloc8or RDR3 NativeDB.*
