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


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.vames-store.com/free-assets/esx_menus/esx_menu_default.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
