> 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/features/pipeline.md).

# Adding replace/addon clothes

Automatically detect your addon and replace clothing, take photos, and detect colors.

{% hint style="danger" %}
All commands below must be run in the **server console / txAdmin**, not in-game chat.
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=GMyIP07Gges>" %}

***

## Before you begin

Run this command to unlock the pipeline commands:

```
rcore_clothing_enable_dangerous_commands
```

{% hint style="warning" %}
This expires after a few minutes. You may need to re-run it before each step.
{% endhint %}

***

## Step 1 - Detect replace clothes

Scans for replace clothes and marks them for processing.

```
rcore_clothing_detect_replace_clothing
```

* Skip this step if you only have **addon** clothes (no replaces).
* Only needs to run once - no need to repeat on future updates unless you add new replaces.
* Takes a few minutes.

***

## Step 2 - Recalibrate

Goes through all clothes and searches for addons/replaces.

```
rcore_clothing_recalibrate <serverId>
```

* You must be **in-game** with plenty of open space around you.
* Don't leave your position until the last spawned ped disappears.
* Takes \~15 minutes.

***

## Step 3 - Take photos

Takes photos of all marked clothing and detects colors automatically.

### Requirements

* Start `rcore_clothing_for_photos` before running this command.
* **Windowed mode** - don't run in fullscreen.
* **Normal or lower graphics** - higher settings may cause memory crashes. Don't change resolution or window size.
* **Clear your screen** - hide crosshairs, draw text, nearest postal, and anything rendered outside NUI.
* **Disable shaders** (NVE, ReShade, etc.) - lighting must be realistic. The hoodie in the confirmation dialog should look gray, not white.

![](/files/es1xpbzfAoBhgmzthKkg)

Run this command in server console / txAdmin:

```
rcore_clothing_photos <serverId>
```

### During the process

* Confirm in-game that the first photo looks correct before continuing.
* Wait for male ped photos to finish, confirm, then repeat for female ped.
* Can take hours depending on how many clothes you have.
* Can be stopped and restarted at any time - it picks up where it left off.
* The green background is removed automatically in post-processing.

{% hint style="info" %}
If the process fails, a window appears with a link. Open the link to check what's blocking the green screen, fix it, and re-run.
{% endhint %}

***

## Step 3.5 - Manual photo mode

Some items (earrings, neckwear, etc.) are too small for automatic detection. Use manual mode to photograph them with a free camera.

```
rcore_clothing_photos_manual <serverId>
```

| Control      | Action                 |
| ------------ | ---------------------- |
| WASD + mouse | Move camera            |
| Hold Shift   | Slow movement          |
| Spacebar     | Take photo / skip item |

* Windowed mode only.
* Position the item so it's at least 300×300px - bigger is better.
* If no item is visible in the green screen room, press spacebar to skip.
* The two-tone green screen in this mode is intentional.

***

## Step 4 - Clean up invisible items

Removes empty slots from addon packs that result in missing photos and invisible clothing.

```
rcore_clothing_soft_blacklist_invisible <serverId>
```

* Follow the same requirements as Step 3 (windowed, clear screen, etc.).
* Unlike Step 3, this cannot be resumed - if stopped, start from the beginning.
* Runs quickly.

❗After finishing all previous steps, **stop** `rcore_clothing_for_photos` and restart your game. It must not run, when you are not taking the photos❗

***

## Step 5 - RCore AI (optional)

Automatically assigns names, categories (polo, shirt, hoodie, etc.), and improved colors to your addon clothes.

This is **optional** - you can do all of this manually via [Admin Mode](/paid-resources/rcore_clothing/features/admin_mode.md).

Read more on the [RCore AI](/paid-resources/rcore_clothing/features/ai.md) page.

***

## Adding new clothes later

| Scenario                | Steps to run                                   |
| ----------------------- | ---------------------------------------------- |
| New **addon** clothes   | Steps 2, 3, 3.5 (only new items are processed) |
| New **replace** clothes | Steps 1, 2, 3, 3.5                             |
