_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.
Hash
0xC6D7DDC843176701Runtime name
GetDraftVehicleDesiredSpeedNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
float _GET_DRAFT_VEHICLE_DESIRED_SPEED(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
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
local retval = GetDraftVehicleDesiredSpeed(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC6D7DDC843176701, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetDraftVehicleDesiredSpeed(vehicle);
// by hash
const retval = Citizen.invokeNative('0xC6D7DDC843176701', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());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
InvokeNativewith the hash — it always works.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.