getTopSpeedTable

getTopSpeedTable( vehicleHash [string] )

Returns a table with topspeeds per gear for the specified vehicle hash. If on lua, pay attention to the +1 indexing.

Preferably, you should input the vehicle hash as "elegy" for example. However if you input it's hash "196747873" it will also work, but will have the function to take longer to execute.

Code Example:

        local getTopSpeedPressed = WarMenu.Button("Print Top Speed of Each Gear")
        if WarMenu.IsItemHovered() then
            WarMenu.ToolTip('Prints in the top speed of each gear for this vehicle.',nil,true)
        end
        if getTopSpeedPressed then 
            local currentCarModel = GetEntityModel(GetVehiclePedIsIn(PlayerPedId(),false))
            local speedTable = dynamic:getTopSpeedTable(currentCarModel)

            for k,v in ipairs(speedTable) do
                print("Gear "..(k-1)..": ", v)
            end
        end