RedM Natives

GET_VEHICLE_ESTIMATED_MAX_SPEED

Hash0xFE52F34491529F0B
Runtime nameGetVehicleEstimatedMaxSpeed
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x53AF99BAA671CA47

Signature

float GET_VEHICLE_ESTIMATED_MAX_SPEED(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Usage

Lua
local retval = GetVehicleEstimatedMaxSpeed(vehicle)

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

// by hash
const retval = Citizen.invokeNative('0xFE52F34491529F0B', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xFE52F34491529F0B, vehicle);

Sources

alloc8or RDR3 NativeDB

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