> 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/server.md).

# Server

You can open the mechanic menu from another server resource:

```lua
TriggerClientEvent('tg:openmechanicmenu', source, positionIndex)
```

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