VehicleClient

getVehicleModelEstimatedMaxSpeed

GET_VEHICLE_MODEL_ESTIMATED_MAX_SPEED0xF417C2502FFFED43

The GTA V native GET_VEHICLE_MODEL_ESTIMATED_MAX_SPEED of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleModelEstimatedMaxSpeed, in JavaScript and in Lua.

SignatureJavaScript
getVehicleModelEstimatedMaxSpeed(modelHash: Hash): number
SignatureLua
getVehicleModelEstimatedMaxSpeed(modelHash: Hash): number

Usage

JavaScript
const value = getVehicleModelEstimatedMaxSpeed(modelHash);
Lua
local value = getVehicleModelEstimatedMaxSpeed(modelHash)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns max speed (without mods) of the specified vehicle model in m/s.

Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_VEHICLE_MODEL_ESTIMATED_MAX_SPEED(Hash modelHash)
Hash
0xF417C2502FFFED43
Formerly
_GET_VEHICLE_MODEL_MAX_SPEED

Open in the interactive natives reference