# API: Open clothes shop

{% hint style="info" %}
Make sure you call this after rcore\_clothes is properly started.
{% endhint %}

```lua
CreateThread(function()
    local section =
    {
        pos = GetEntityCoords(PlayerPedId()),
        label = '👞',
        help = 'Press ~INPUT_CONTEXT~ to open shop menu',
        components = {
            {
                label = 'Shoes',
                name = 'shoes_1',
                from = 1,
                to = 88,
                current = 1,
                price = 150,
                reset = {
                    'shoes_2'
                },
            },
            {
                label = 'Shoes color',
                name = 'shoes_2',
                from = 0,
                to = 20,
                current = 1,
                price = 50,
            }
        },
        cam = {
            offset = {
                x = -0.5,
                y = 1.0,
                z = -0.5
            },
            pointOffset = {
                x = 0,
                y = 0,
                z = -0.8
            },
            taskHeading = 354.66
        },
        size = 1.2, --Default 1
        renderDistance = 10.0,
    }

    TriggerEvent("rcore_clothes:openMenu", section, 1, 1, false, true)
    
    -- paid if true = player will need to pay for the clothes
    -- saving if true = player will be able to save the clothes to wardrobe
    
    --TriggerEvent("rcore_clothes:openMenu", section, sectionIndex, shopIndex, paid, saving)
end)
```


---

# Agent Instructions: 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://documentation.rcore.cz/paid-resources/rcore_clothing/rcore_clothes/open-clothes-shop-with-api.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.
