> For the complete documentation index, see [llms.txt](https://docs.gta.clothing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gta.clothing/how-to-guides/set-up-the-clothing-inspector-on-your-fivem-server.md).

# Set Up the Clothing Inspector on Your FiveM Server

Turn on the Clothing Inspector build option, copy the built resources to your FiveM server and start them

The **Clothing Inspector** is the in-game tool for creators and testers that DCT builds together with your FiveM clothing. This guide takes you from the build option to the menu open in game: turn the option on, build, copy the resources to your server, start them in `server.cfg` and check that everything loaded. How to use the menu once it is open is explained in [Test Clothing In Game with the Clothing Inspector](https://docs.gta.clothing/how-to-guides/test-clothing-in-game-with-the-clothing-inspector.md).

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-d087bbf056084ebde6c8b305037a5a85384460b8%2Fin-game-inspector-poster.webp?alt=media" alt="The Clothing Inspector open in game on a FiveM server: clothing slots on the left, the addon tops of a build with their thumbnails, and the ped in the middle wearing one of them."><figcaption><p>The Clothing Inspector on a FiveM server, built together with the clothing.</p></figcaption></figure>

{% embed url="<https://gta.clothing/assets/media/v4/in-game-inspector-mobile.mp4?v=6f4834d0aed0>" %}
Addon tops tried on and switched through their textures, a hat and shoes close up, a tattoo on bare skin, then the female ped and a search.
{% endembed %}

{% hint style="info" %}
**What you need**

* A FiveM project for the freemode peds, and an **Advanced** or **Ultimate** license for the build option.
* A FiveM server where you can add resources and restart, and the FiveM client to join it.
* Nothing else to download: DCT writes the Clothing Inspector into your build. It needs no plugin.
  {% endhint %}

## 1. Turn on the build option

1. Open your project and select **Build Project** (or press **Ctrl+K** and paste `>Build project`).
2. Under **Target resource type**, select **FiveM Resource**.
3. Open the **Advanced** tab and go to **Integration outputs**.
4. Turn on **Include the in-game Clothing Inspector**.
5. Choose the **Thumbnails** your players download: **Every texture**, **First texture of each cloth** or **No thumbnails**, and a **Thumbnail size** of 128, 192 or 256 px. The line below shows about how many pictures that is.

The option is saved with your project, so every later build includes the inspector until you turn it off.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-f8d97efb2c997131c9cc35475072a1a531386999%2Fclothing-inspector-build-option.png?alt=media" alt="Build Project on the Advanced tab at Integration outputs, with Include the in-game Clothing Inspector ticked, Thumbnails set to Every texture, Thumbnail size 192 px and the line About 63 thumbnails, roughly 393.8 KB that every player downloads. The Build overview on the right shows FiveM Legacy, 10 clothes and, under Resources, forgestudio, dct_inspector and forgestudio_thumbnails. The destination is blurred."><figcaption><p>The Clothing Inspector option at Integration outputs. The Build overview already lists the two resources it adds.</p></figcaption></figure>

{% hint style="warning" %}
Every player downloads the clothing and tattoo information of a build with the Clothing Inspector, including the names and tags you gave your items. If those must stay private, build without the option.
{% endhint %}

{% hint style="info" %}
You can set the **Build output folder** to a folder inside your server's `resources` folder that holds only DCT builds, for example `resources\[dct]`, so the build lands where the server reads it. DCT replaces the resource folders it builds there each time and asks before it replaces a folder that is not empty, so keep your own files and other resources out of it.
{% endhint %}

## 2. Build

Select **Build project**. The **Build overview** lists two more resources than before: `dct_inspector`, the Clothing Inspector itself, and a thumbnails resource named after your clothing resource (the overview lists it) with `_thumbnails` at the end.

When the build finishes, the result has an **In-game Clothing Inspector** section with the lines for your `server.cfg`. Select **Copy server.cfg lines**.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-ef5ed25f08aef528270e14fd458fafe923fd528d%2Fclothing-inspector-build-result.png?alt=media" alt="Build complete for FiveM Legacy. Under Resources: forgestudio, dct_inspector and forgestudio_thumbnails. The In-game Clothing Inspector section says it wrote 63 thumbnails and shows the server.cfg lines ensure forgestudio, ensure forgestudio_thumbnails and ensure dct_inspector, with commented lines that limit the inspector to admins, and Copy server.cfg lines beside its heading."><figcaption><p>A finished build with the Clothing Inspector: copy the server.cfg lines and deploy the three resources together.</p></figcaption></figure>

If the result says pictures are missing, select **Create missing pictures in the Thumbnail Generator**, generate them and build again (see [Generate Thumbnails for a Whole Project](https://docs.gta.clothing/how-to-guides/generate-thumbnails-for-a-project.md)). A cloth without a picture still works in game; it shows a plain tile with its number.

## 3. Copy the resources to your server

The build output folder now holds your clothing next to the two new resources. For a clothing resource named `my_clothing`:

```
[dct]
├── my_clothing              your clothing
├── my_clothing_thumbnails   the pictures the inspector shows
└── dct_inspector            the Clothing Inspector
```

Copy all of them into your server's `resources` folder (skip this when you built straight into it). Copy complete folders and keep their names: the server finds the inspector by the folder name `dct_inspector`.

## 4. Start them in server.cfg

Paste the copied lines into `server.cfg`. They look like this:

```
ensure my_clothing
ensure my_clothing_thumbnails
ensure dct_inspector

# Optional. Only players with this permission may open the inspector (everyone may by default):
# setr dct_inspector_access ace
# add_ace group.admin dct.inspector allow
```

The first lines are all you need. Every player can open the inspector, which is fine on a test server. On a server that real players join, remove the `#` from the last two lines so that only your admins can open it, and give the permission to other testers the same way.

A build with Asset Escrow clothing writes the clothing and its thumbnails into a folder in brackets of its own, for example `[my_clothing]`. Then the copied lines start that whole folder with one line, `ensure [my_clothing]`, followed by `ensure dct_inspector`; copy that folder as it is. A folder in brackets that you chose as the build output folder is not started this way: use the lines exactly as you copied them.

Restart the server and watch its console: it lists `dct_inspector` among the resources it started. Every server setting, for example who may open the inspector or turning off the connection to DCT, is described in the `README.md` inside the `dct_inspector` folder.

## 5. Open it in game

Join your server, then press **I** or type `/dctinspector` in the chat. After you join, a small note shows the key and the command for a few seconds. Press the same key or **Esc** to close it.

Your clothing comes first, with the names and thumbnails from your project. Select a tile to put it on the ped:

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-2bf95e6d6939970a428f0bf121ef536b46b5805f%2Finspector-try-on.webp?alt=media" alt="Animation: scrolling through the addon tops, selecting a striped shirt that the ped then wears, and switching through its five textures."><figcaption><p>Select a cloth to try it on, then switch its textures.</p></figcaption></figure>

Everything you can do in the menu is in [Test Clothing In Game with the Clothing Inspector](https://docs.gta.clothing/how-to-guides/test-clothing-in-game-with-the-clothing-inspector.md).

## If something is missing

* **Nothing happens when you press I.** The inspector does not open in a vehicle, while falling, swimming or dead, and says so; stand on foot and try again. If the server limits it to a permission, ask an admin for it. Try `/dctinspector`, or change the key under **Settings > Key Bindings > FiveM** when another resource uses **I**.
* **The inspector does not open at all.** A message in the game says so. The usual cause is an incomplete copy of the `dct_inspector` folder: copy the complete folder again and restart the server.
* **Your clothing or its names do not show.** The clothing resource is not running. The inspector says so above the list and names the resource, and its **Health** tab names the resource it needs. Check that `server.cfg` starts every line you copied, then read the server console where the resource starts: `Could not find dependency` means a folder is missing, and `You lack the required entitlement` means a locked asset that your server's license key does not own.
* **No pictures at all.** The thumbnails resource is not started, and the **Health** tab says that the thumbnails are not loaded. Check its line in `server.cfg`, or whether the build used **No thumbnails**.

## Update it

Build again and copy the folders again, replacing the old ones. DCT writes the Clothing Inspector that comes with your DCT version into every build with the option, so updating DCT and building again also updates the inspector. If you run several DCT projects on one server, keep only one `dct_inspector`: the one from your newest build.

## Install it without a DCT build

The Clothing Inspector is free and open source, so you can also add it to any FiveM server by hand:

1. Download `dct_inspector-<version>.zip` from the [releases on GitHub](https://github.com/DurtyFree/durty-cloth-tool-inspector/releases) and extract it into your server's `resources` folder. Keep the folder name `dct_inspector`.
2. Add `ensure dct_inspector` to `server.cfg` and restart the server.

Installed this way, it lists and puts on every clothing collection, tattoo and facial overlay the game has loaded. Names, thumbnails, shop data and the **Health** checks come with clothing that was built with the build option above. To update a copy installed by hand, download the new release and replace the `dct_inspector` folder.
