> 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/outdated/vms_documents/guides/adding-to-radialmenu.md).

# Adding to radialmenu

### Add this to ***Config.MenuItems***

{% tabs %}
{% tab title="esx\_radialmenu" %}

```lua
    [2] = {
        id = 'documents',
        title = 'Documents',
        icon = 'id-card',
        items = {
            {
                id = 'id_card',
                title = 'ID Card',
                icon = 'id-card',
                type = 'cmd',
                event = '+id_card',
                shouldClose = true
            },
            {
                id = 'driving_card',
                title = 'Driving License',
                icon = 'car',
                type = 'cmd',
                event = '+driverlicense',
                shouldClose = true
            },
            {
                id = 'boat_card',
                title = 'Boat License',
                icon = 'ship',
                type = 'cmd',
                event = '+boatlicense',
                shouldClose = true
            },
            {
                id = 'flying_card',
                title = 'Fly License',
                icon = 'helicopter',
                type = 'cmd',
                event = '+flyinglicense',
                shouldClose = true
            },
            {
                id = 'id_card',
                title = 'Gun Lcense',
                icon = 'gun',
                type = 'cmd',
                event = '+weaponlicense',
                shouldClose = true
            },
        }
    },
```

{% endtab %}

{% tab title="qb-radialmenu" %}

```lua
    [2] = {
        id = 'documents',
        title = 'Documents',
        icon = 'id-card',
        items = {
            {
                id = 'id_card',
                title = 'ID Card',
                icon = 'id-card',
                type = 'command',
                event = '+id_card',
                shouldClose = true
            },
            {
                id = 'driving_card',
                title = 'Driving License',
                icon = 'car',
                type = 'command',
                event = '+driverlicense',
                shouldClose = true
            },
            {
                id = 'boat_card',
                title = 'Boat License',
                icon = 'ship',
                type = 'command',
                event = '+boatlicense',
                shouldClose = true
            },
            {
                id = 'flying_card',
                title = 'Fly License',
                icon = 'helicopter',
                type = 'command',
                event = '+flyinglicense',
                shouldClose = true
            },
            {
                id = 'id_card',
                title = 'Gun Lcense',
                icon = 'gun',
                type = 'command',
                event = '+weaponlicense',
                shouldClose = true
            },
        }
    },
```

{% endtab %}
{% endtabs %}

### Add this to ***Config.Commands***

```lua
    ["+id_card"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_card")
        end,
    },
    ["+driverlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_drive")
        end,
    },
    ["+weaponlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_weapon")
        end,
    },
    ["+boatlicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_boat")
        end,
    },
    ["+flyinglicense"] = {
        Func = function() 
            TriggerEvent("vms_document:showMyDocument", "id_fly")
        end,
    },
```
