> For the complete documentation index, see [llms.txt](https://docs.vames-store.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vames-store.com/free-assets/esx_menus/esx_menu_default.md).

# esx\_menu\_default

<figure><img src="/files/aLbTlg4kvdDafvNPQjWi" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th>Parameter</th><th width="251.33333333333331">Type</th><th>Example</th></tr></thead><tbody><tr><td>icon</td><td>font-awesome</td><td>'fas fa-users-cog'</td></tr><tr><td>label</td><td>text</td><td>'General'</td></tr><tr><td>value</td><td>any</td><td>1</td></tr><tr><td>hint</td><td>text</td><td>'Thats example hint'</td></tr><tr><td>hintImage</td><td>url</td><td>''</td></tr><tr><td>url</td><td>url</td><td>'https://www.vames-store.com'</td></tr></tbody></table>

```lua
local elements = {
    {icon = 'fas fa-users-cog', label = 'General',  value = 1},
    {icon = 'fas fa-globe', label = 'Online Players',  value = 2, hint = "This is an example hint, here you can suggest what this option does and below you can put a hint image", hintImage = "IMAGE_URL"},
    {icon = 'fas fa-tshirt', label = 'Admin Clothes', value = 3},
    {icon = 'fas fa-car', label = 'Vehicle', value = 4},
    {label = 'Server Restart', value = 5},
    {icon = 'fas fa-brackets-curly', label = 'Developer Options', value = 6}
}
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'unique_name_menu', {
    title    = 'ADMIN MENU',
    align    = 'center',
    elements = elements
}, function(data, menu)
    if data.current.value == 1 then
        -- Entering to General
    elseif data.current.value == 2 then
        -- Entering to Online Players
    elseif data.current.value == 3 then
        -- Entering to Admin Clothes
    elseif data.current.value == 4 then
        -- Entering to Vehicle
    elseif data.current.value == 5 then
        -- Entering to Server Restart
    elseif data.current.value == 6 then
        -- Entering to Developer Options
    end
    menu.close()
end, function(data, menu)
    menu.close()
end)
```
