---
description: toggleEsc()
---

# toggleEsc

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

```lua
            local escPressed = WarMenu.CheckBox("Toggle ESC",escActive)
            if WarMenu.IsItemHovered() then
                WarMenu.ToolTip('Toggles the Eletronic Stability Control System',nil,true)
            end
            if escPressed then escActive = dynamic:toggleEsc() end
```
