> For the complete documentation index, see [llms.txt](https://5scripts-1.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://5scripts-1.gitbook.io/docs/assets/5s_tuningmenu/functions.md).

# Functions

### Client exports

Open menu:

```lua
exports['5s_tuning']:openTuningMenu()
```

Close menu:

```lua
exports['5s_tuning']:closeTuningMenu(restore)
```

* `restore` - bool | Should the previous state be restored, or should the current changes be saved\\

### Statebags

Player in tuning menu state:

```lua
LocalPlayer.state.inTuningMenu
```

* `return bool/nil`

Tuning project for vehicle:

```
Entity(vehicle).state.tuningProject
```

* `vehicle` - vehicle entity
* `return string/nil`
