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

# Client

You can open the mechanic menu from another resource:

```lua
exports['tg-mechanicui']:openMechanicMenu(positionIndex)
```

You can also trigger:

```lua
TriggerEvent('tg:openmechanicmenu', positionIndex)
```

`positionIndex` is optional. If omitted, the script will try to use the closest valid mechanic position.
