> For the complete documentation index, see [llms.txt](https://thymona.gitbook.io/menuv-standalone-menu-for-fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thymona.gitbook.io/menuv-standalone-menu-for-fivem/menuv/createmenu.md).

# CreateMenu

| Namespace | Type     |
| --------- | -------- |
| **MenuV** | function |

## MenuV:CreateMenu

```cpp
MenuV:CreateMenu(title: string, subtitle: string, position: Position, r: number, g: number, b: number, icon: string, size: Size): Menu
```

### Parameters

| Name         | Type     | Description                                                                    | Default    |
| ------------ | -------- | ------------------------------------------------------------------------------ | ---------- |
| **title**    | string   | Title on header                                                                | "MenuV"    |
| **subtitle** | string   | Subtitle under header                                                          | ""         |
| **position** | Position | [Read about **position**](/menuv-standalone-menu-for-fivem/enums/positions.md) | "topleft"  |
| **r**        | number   | Red color between 0 - 255                                                      | 0          |
| **g**        | number   | Green color between 0 - 255                                                    | 0          |
| **b**        | number   | Blue color between 0 - 255                                                     | 255        |
| **icon**     | string   | [**FontAwsome**](https://fontawesome.com/icons?d=gallery) icon on banner       | ""         |
| **size**     | Size     | [Read about **size**](/menuv-standalone-menu-for-fivem/enums/sizes.md)         | "size-110" |

### Returns

| Index | Type | Description                        |
| ----- | ---- | ---------------------------------- |
| 1     | Menu | Generated menu based on parameters |

### Examples

```lua
local menu = MenuV:CreateMenu('MenuV', 'Welcome to menu', 'topleft', 255, 0, 0, 'fab fa-angellist', 'size-125')
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://thymona.gitbook.io/menuv-standalone-menu-for-fivem/menuv/createmenu.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.
