> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_clothing/rcore_clothes/how-to-open-wardrobe.md).

# API: Open outfits

{% hint style="info" %}
All API calls works only if rcore\_clothes are already started.
{% endhint %}

This code is for client-side of your script, you can call it from command or with event.

<pre class="language-lua"><code class="lang-lua"><strong>CreateThread(function()
</strong>    TriggerEvent("rcore_clothes:openOutfits")
end)
</code></pre>

#### Example with command

Creating test command that will open wardrobe.

```lua
RegisterCommand('test', function(src, args, raw)
    TriggerEvent("rcore_clothes:openOutfits")
end)
```
