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