> 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/configs/config_undress.md).

# Undress clothes

How to fix the "Undress" button when replace clothing packs break it.

![](/files/h5Msy688aWQK8yxTw3gP)

{% hint style="info" %}
Most servers won't need this. Only follow these steps if clicking "Undress" in a shop puts random clothes on your ped instead of removing them.
{% endhint %}

***

## Why it happens

Some replace clothing packs override the clothing ID that represents a "naked" ped. When you hit Undress, the script applies that ID - but now it shows the replacement clothes instead of nothing.

***

## How to fix

{% stepper %}
{% step %}

### Find the correct "naked" item

1. Enable [Admin Mode](/paid-resources/rcore_clothing/features/admin_mode.md) and turn on Stock Management.
2. Go to the category where Undress is broken (e.g. Pants).
3. Browse until you find the item that makes your ped look undressed.
4. Click it to preview, then scroll down in Admin Mode and copy the **Previewed item hash**.
   {% endstep %}

{% step %}

### Update the config

1. Open `rcore_clothing/configs/config_default.lua`.
2. Find `Config.UnsetCards` and locate the correct ped table:
   * Male: `mp_m_freemode_01`
   * Female: `mp_f_freemode_01`
3. Replace the hash for the broken category with your copied hash.
   {% endstep %}
   {% endstepper %}

**Example** - fixing Pants for the male ped:

```lua
-- before
pants = '1724446270',
-- after
pants = 'Male_xmas2--4--0--3',
```

Restart the script after saving.
