# nui controls

The garage menu supports both mouse/click interaction and full keyboard navigation.

## Keyboard

| Key            | Action                                                   |
| -------------- | -------------------------------------------------------- |
| `↓` Arrow Down | Move selection down to the next vehicle.                 |
| `↑` Arrow Up   | Move selection up to the previous vehicle.               |
| `Enter`        | Spawn the currently selected vehicle and close the menu. |
| `Escape`       | Close the menu without spawning a vehicle.               |

Navigation wraps around — pressing `↓` on the last vehicle moves to the first, and vice versa. The selected vehicle scrolls into view automatically when the list overflows.

## Mouse

| Element                  | Action                                                                     |
| ------------------------ | -------------------------------------------------------------------------- |
| Vehicle button           | Spawns that vehicle and closes the menu.                                   |
| **Store Vehicle** button | Deletes the player's currently active spawned vehicle and closes the menu. |
| **Close** button         | Closes the menu without any action.                                        |

## Store Vehicle button visibility

The **Store Vehicle** button is only shown when the player has an active vehicle that was spawned from this resource. If the player has no active vehicle, the button is hidden.

## Panel position

The menu panel is anchored to the **right side** of the screen, vertically centered. This can be changed by editing the `.menu-container` class in `html/style.css`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mohssins.gitbook.io/mohscriptsdocs/moh-jobgarage/nui-controls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
