VehicleClient

getVehicleEstimatedMaxSpeed

GET_VEHICLE_ESTIMATED_MAX_SPEED0x53AF99BAA671CA47

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

SignatureJavaScript
getVehicleEstimatedMaxSpeed(vehicle: Vehicle): number
SignatureLua
getVehicleEstimatedMaxSpeed(vehicle: Vehicle): number

Usage

JavaScript
const value = getVehicleEstimatedMaxSpeed(vehicle);
Lua
local value = getVehicleEstimatedMaxSpeed(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Vehicle VEHICLE
In the game
float GET_VEHICLE_ESTIMATED_MAX_SPEED(Vehicle vehicle)
Hash
0x53AF99BAA671CA47
Formerly
_GET_VEHICLE_MAX_SPEED

Open in the interactive natives reference