getVehicleModelEstimatedMaxSpeed
GET_VEHICLE_MODEL_ESTIMATED_MAX_SPEED0xF417C2502FFFED43The 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.
getVehicleModelEstimatedMaxSpeed(modelHash: Hash): numbergetVehicleModelEstimatedMaxSpeed(modelHash: Hash): numberUsage
JavaScript
const value = getVehicleModelEstimatedMaxSpeed(modelHash);Lua
local value = getVehicleModelEstimatedMaxSpeed(modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modelHash | Hash | number | integer |
Returns
float JavaScript number, Lua numberNotes
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