# VEHICLE::_SET_DRAFT_VEHICLE_DESIRED_SPEED

- **Hash:** `0x0C3F0F7F92CA847C`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetDraftVehicleDesiredSpeed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_SET_DRAFT_VEHICLE_DESIRED_SPEED

## Signature

```c
void _SET_DRAFT_VEHICLE_DESIRED_SPEED(Vehicle vehicle, float speed);
```

## Parameters

- `vehicle` (`Vehicle`)
- `speed` (`float`)

## Returns

`void`

## Usage

### Lua

```lua
SetDraftVehicleDesiredSpeed(vehicle, speed)

-- always available, by hash
Citizen.InvokeNative(0x0C3F0F7F92CA847C, vehicle, speed)
```

### JavaScript

```js
SetDraftVehicleDesiredSpeed(vehicle, speed);

// by hash
Citizen.invokeNative('0x0C3F0F7F92CA847C', vehicle, speed + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x0C3F0F7F92CA847C, vehicle, speed);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- 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::_GET_DRAFT_VEHICLE_DESIRED_SPEED](https://natives.borderlinerp.com/natives/VEHICLE/_GET_DRAFT_VEHICLE_DESIRED_SPEED.md) — Returns rage::NumericLimits<float>::kMax (3.402823466e+38) if vehicle is not a valid vehicle of type VEHICLE_TYPE_DRAFT.

*Sources: alloc8or RDR3 NativeDB.*
