# Tutorials

[How can I add clothing to a player using another script?](#id-1)

[How can I remove a player's clothing using another script?](#id-1-1)

[How can I give myself a specific clothing item?](#id-3)

[How can I add a custom name and image to a specific clothing item?](#id-4)

#### 1. <a href="#id-1" id="id-1"></a>

{% hint style="info" %}
**Add clothing to a player:**
{% endhint %}

{% tabs %}
{% tab title="Client" %}
```lua
-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 2: Clothing number
-- 3: Clothing color
exports.fivecode_clothing:AddClothing(clothType, clothNumber, clothColor)
```
{% endtab %}

{% tab title="Server" %}
```lua
-- 1: Player source
-- 2: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 3: Clothing number
-- 4: Clothing color
exports.fivecode_clothing:AddClothing(source, clothType, clothNumber, clothColor)
```
{% endtab %}
{% endtabs %}

***

#### 2. <a href="#id-1" id="id-1"></a>

{% hint style="info" %}
**Remove a player**'s **clothing:**
{% endhint %}

{% tabs %}
{% tab title="Client" %}
```lua
-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
exports.fivecode_clothing:RemoveClothing(clothType)
```
{% endtab %}

{% tab title="Server" %}
```lua
-- 1: Player source
-- 2: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
exports.fivecode_clothing:RemoveClothing(source, clothType)
```
{% endtab %}
{% endtabs %}

***

#### 3.

{% hint style="info" %}
**Give yourself a specific clothing item:**
{% endhint %}

```lua
-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 2: Clothing number
-- 3: Clothing color
/giveclothing type number color
```

***

#### 4.

{% hint style="info" %}
**Add a custom name and image to a specific clothing item:**
{% endhint %}

1. Add a custom name or image to a specific clothing item:\
   \- Simply duplicate an existing one from the config for easier setup.

<pre class="language-lua"><code class="lang-lua">Config.CustomName = {
    {
        Label = 'Gucci Pants',
        Image = 'gucci_p',
        Type = 'pants',
        Ped = 'mp_m_freemode_01',
        Clothing = {
            Type = 17,
            Color = 3
        },
    },
    {
        Label = 'Pig mask',
        Image = false,
        Type = 'mask',
        Ped = 'mp_m_freemode_01',
        Clothing = {
            Type = 1,
            Color = 2
        },
    },
<strong>    {
</strong><strong>        Label = 'Example Name',
</strong><strong>        Image = 'example_image',
</strong><strong>        Type = 'shoes',
</strong><strong>        Ped = 'mp_m_freemode_01',
</strong><strong>        Clothing = {
</strong><strong>            Type = 4,
</strong><strong>            Color = 1
</strong><strong>        },
</strong><strong>    },
</strong>}
</code></pre>

2. Now after gving yourself the item with [/giveclothing command](#id-3) or removing the clothing from your character it will have a new name, image or both.
3. Enjoy!

***

> If you need help with anything, do not hesitate and open a support ticket in our [discord](https://discord.gg/Yf7GrHDuUr).
