> 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/ecu-exports/toggletcs.md).

# toggleTcs

toggleTcs()

Toggles the TCS assist on the current vehicle and return it's current state.

```lua
        local tcsPressed = WarMenu.CheckBox("Toggle TCS",tcsActive)
        if WarMenu.IsItemHovered() then
            WarMenu.ToolTip('Toggles the Traction Control System',nil,true)
        end
        if tcsPressed then tcsActive = dynamic:toggleTcs() end
```
