RedM Natives

_GET_DRAFT_VEHICLE_DESIRED_SPEED

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

Hash0xC6D7DDC843176701
Runtime nameGetDraftVehicleDesiredSpeed
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_DRAFT_VEHICLE_DESIRED_SPEED(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

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
local retval = GetDraftVehicleDesiredSpeed(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC6D7DDC843176701, vehicle, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetDraftVehicleDesiredSpeed(vehicle);

// by hash
const retval = Citizen.invokeNative('0xC6D7DDC843176701', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
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

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.