> For the complete documentation index, see [llms.txt](https://legacydmc.gitbook.io/dynamic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacydmc.gitbook.io/dynamic/transmission-exports/gettopspeedtablefromtransmissiondata.md).

# getTopSpeedTableFromTransmissionData

getTopSpeedTableFromTransmissionData(transmissionData \[table])

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

\
The transmission data should be in the same standard as the transmission component at vehiclesData.lua<br>

Code Example:

```lua
        local getCustomTopSpeedPressed = WarMenu.Button("Print Top Speed of Specific Transmission")
        if WarMenu.IsItemHovered() then
            WarMenu.ToolTip('Prints in the top speed of a specific transmission.',nil,true)
        end
        if getCustomTopSpeedPressed then 

            local transmissionData = { -- you can get this with dynamic:getVehicleData(), or loading your own custom solution.
                frontTorqueDist = 0.3, -- the transmission data it expects, is simply the same as the vehData.lua, as dynamic is built on modular components.
                gearCount = 7,
                gearRatios = {
                    3.133,
                    2.083,
                    1.575,
                    1.244,
                    0.979,
                    0.786,
                    0.677,
                },
                launchControl = {
                    enabled = false,
                    targetRpmRange = 0.09610389610389611,
                },
                maxSpeed = 326,
                rpmDecaymentSpeed = 2.5,
                shiftingTime = 125,
                transmissionType = 0,
            }
            local speedTable = dynamic:getTopSpeedTableFromTransmissionData(transmissionData)

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

\
More details at:

{% content-ref url="/pages/VwgXm3zN0uv5cJBSbSZh" %}
[Creating a transmission data](/dynamic/fine-tuning-your-vehicle/creating-a-transmission-data.md)
{% endcontent-ref %}
