> 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')
```
