> 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/test-clothing-in-game-with-the-clothing-inspector.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Test Clothing In Game with the Clothing Inspector

Build the in-game Clothing Inspector with your FiveM clothing and test every cloth on your server

The **Clothing Inspector** is an in-game tool that DCT can build together with your FiveM clothing. On your test server you open it, browse every clothing collection the game has loaded, put clothing, tattoos and facial overlays on a ped or your own character and read the names, prices, thumbnails and warnings of your build. When DCT runs on the same PC, you can jump from a cloth in the game to the same cloth in DCT, and show the clothing you select in DCT on the ped in the game.

{% hint style="info" %}
The Clothing Inspector needs an **Advanced** or **Ultimate** license and a **FiveM** project for the freemode peds. It is a tool for creators and testers. It needs nothing on the server besides the resources DCT builds: every player can open it unless you limit it to a permission (see [Deploy it](#deploy-it)). The inspector itself is free and open source: [durty-cloth-tool-inspector on GitHub](https://github.com/DurtyFree/durty-cloth-tool-inspector).
{% endhint %}

## Build with the Clothing Inspector

For every step from the build option to the menu open on your server, with pictures, see [Set Up the Clothing Inspector on Your FiveM Server](https://docs.gta.clothing/how-to-guides/set-up-the-clothing-inspector-on-your-fivem-server.md).

1. Open **Build Project** (or press **Ctrl+K** and paste `>Build project`) and select **FiveM Resource**.
2. Open the **Advanced** tab and, under **Integration outputs**, turn on **Include the in-game Clothing Inspector**.
3. Choose the **Thumbnails**: **Every texture** (the default), **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 your players download.
4. Build as usual. The build overview lists two extra resources: `dct_inspector` and your thumbnails resource.

Thumbnails come from the pictures DCT already has for your clothing, tattoos and facial overlays: its automatic previews and the output of the [Thumbnail Generator](https://docs.gta.clothing/how-to-guides/generate-thumbnails-for-a-project.md), as long as they show the current version of each item. When the result says pictures are missing, select **Create missing pictures in the Thumbnail Generator**, generate them, and build again. A cloth without a picture shows a plain tile with its number.

{% 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 %}

## Deploy it

The [setup guide](https://docs.gta.clothing/how-to-guides/set-up-the-clothing-inspector-on-your-fivem-server.md) shows each step in more detail.

When the build finishes, the result shows the lines for your `server.cfg`. Select **Copy server.cfg lines**, then:

1. Copy every resource from the output folder into your server's `resources` folder: your clothing resources, the thumbnails resource and `dct_inspector`.
2. Paste the lines into `server.cfg`. They start your clothing, its thumbnails and `dct_inspector`; nothing else is needed, and every player can open it.
3. Restart the server.

The lines that begin with `#` are optional. On a public server, remove the `#` from the last two lines (`setr dct_inspector_access ace` and `add_ace group.admin dct.inspector allow`) so that only your admins can open the inspector; give the permission to other testers the same way. Without them, every player can try on everything your server streams.

If you run several DCT projects on one server, keep only one `dct_inspector`: the one from your newest build.

The `dct_inspector` folder contains a `README.md` with every server setting, for example limiting who can open the inspector or turning off the connection to DCT.

## Use it in game

Press **I**, or type `/dctinspector` in the chat. After you join, a small note shows the key and the command for a few seconds. You can change the key under **Settings > Key Bindings > FiveM**. Press the same key or **Esc** to close the inspector; your character, camera and lighting come back as they were. While it is open, the game's HUD and the chat are hidden. If something ever looks stuck, `/dctinspector reset` closes the inspector and restores everything.

If the inspector does not open, or your clothing, its names or its thumbnails do not show, see [If something is missing](https://docs.gta.clothing/how-to-guides/set-up-the-clothing-inspector-on-your-fivem-server.md#if-something-is-missing).

* **Browse:** pick a slot on the left (Top, Legs, Shoes, props and more) and a collection. Collections are grouped as your Durty Cloth Tool builds, other addons, GTA DLC and the base game.
* **Addons only, or the game's own as well:** when your server has addon clothing, the inspector starts on **Addons only**. It lists the clothing your server's resources add, and only the slots that have some; the tattoo, hair overlay and badge lists show what your builds and other packs add. Select **Game and addons** to see the game's own clothing and tattoos as well.
* **Try on:** selecting a tile puts it on the ped. Choose a texture below the details, step through items with the arrow keys, and use undo and redo. To take it off, select it again, press **Worn**, or pick **None** at the top of the list. A dot on the left marks every slot the ped wears something in.
* **Ped or your character:** the inspector dresses a stand-in by default (**Ped**), which leaves your character untouched. Switch to **My character** when other players should see the clothing. When you switch between the male and the female ped, each one keeps its outfit; turn off **Keep each ped's outfit** in the settings to start from the plain ped instead.
* **Look closely:** camera presets for body, head, Torso, hands, legs and feet, a turntable, lighting moods, a key light, poses for clipping checks and a studio view without the interface.
* **Tattoos, hair overlays and badges:** below the clothing slots, open **Tattoos**, **Hair overlays** or **Badges**. The lists show the tattoos of your builds and the ones the game already has. Selecting one shows it on bare skin: the clothing over that body part comes off and the camera moves there, and the clothing goes back on when you return to the clothing slots. **Keep on** leaves a tattoo on while you look at others. A game tattoo whose texture your build replaces is marked **Replaced** and shows your design's image.
* **Face:** pick a facial overlay slot (makeup, facial hair, blemishes and more), choose an overlay and set its opacity and colours. New facial overlays are listed as not loaded, because FiveM does not show them yet; overlays that replace one of the game's work.
* **Look:** set the ped's skin tone, heritage, eye colour, hair colour and face features. The look is saved for your next visit and never changes your character.
* **Outfits:** lock slots, randomize the rest, save outfits and share them as a code. Outfits include the tattoos and facial overlays you kept on.
* **Search:** type a name, tag or collection, or `#12` for the cloth with number 12. Filters such as favourites or a body zone appear above the list when they would narrow it. **F1** lists every shortcut.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-ee96f7a8af831c105ab89ebb0d8181139b7feb12%2Finspector-close-up.webp?alt=media" alt="Animation: a red bucket hat put on the ped and seen close up from the side, then the camera on the feet while the ped tries four pairs of shoes."><figcaption><p>The camera follows the slot, from hats on the head to shoes on the feet.</p></figcaption></figure>

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-8c36fce5cab8e1a12fcaa7c9fc090fdde2b4e68f%2Finspector-layers.webp?alt=media" alt="Animation: the Tattoos section with game tattoos and replaced ones marked Replaced; selecting a chest tattoo takes the jacket off and the tattoo shows on the bare chest."><figcaption><p>A tattoo shows on bare skin: the clothing over it comes off and the camera moves there.</p></figcaption></figure>

Clothing is identified by its collection and its number inside that collection, and a tattoo by its collection and name, so saved outfits and copied references stay correct when a game update moves the global numbers.

{% hint style="info" %}
On **My character**, tattoos and facial overlays can only be tried when the game can read what your character already has, so everything is put back when you close the inspector. Where it cannot, the inspector tells you to switch to **Ped**. Other players see the tattoos on your character while the inspector is open.
{% endhint %}

## Check your build in the Health tab

The **Health** tab compares each of your builds with what the game actually loaded and explains every finding with a fix. Typical findings are a clothing resource that is not running and the resource it needs, an older build still deployed, a collection declared by two resources, a slot with 256 drawables (the game then shows none of them), more than 26 textures on one cloth, a tattoo of your build that the game did not load, and a build made for another game build. It also shows how close the server is to the game's shop entry and streaming limits.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-3e88009ae63e50202919eb3bfaf917e18eabff57%2Finspector-health.webp?alt=media" alt="The Health tab of the Clothing Inspector in game on a local test server: 0 errors, 2 warnings and 0 notes, the game budgets for shop entries, streamed texture dictionaries and other streamed assets, and the warning Built for another game build on the collection mp_f_forgestudio (built for 3889, running 3751; global ids can shift, collection-relative ids stay right). The second warning is blurred. The ped beside it wears Female 36 top with Arms crossed, and the item panel shows its own warning that its global id differs from the build."><figcaption><p>The Health tab with a real finding and the game budgets.</p></figcaption></figure>

## Move between the game and DCT

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-ea847da00ac50abcceedbf526f724f3fcd8d6a08%2Finspector-details.webp?alt=media" alt="A sweater with fourteen textures selected in the inspector: its collection, slot, local index, texture and game name on the right, a finding below them and the buttons to copy a reference, Lua natives or JSON."><figcaption><p>The details of a cloth, with the buttons to copy its reference.</p></figcaption></figure>

* **Copy a reference** of a cloth in the inspector and paste it into the DCT search: DCT selects the same cloth.
* With DCT running on the same PC, select **Open in Durty Cloth Tool** in the inspector. The first time, DCT asks you to allow the connection; check that you opened the inspector yourself, then choose **Allow**. DCT remembers your answer until it closes, and asks again for another server or other builds. DCT selects the cloth and its taskbar button flashes, so your game stays in front.
* In DCT, right-click clothing, a tattoo design or a facial overlay and choose **Show in game** (or press **Ctrl+K** and paste `>Show in game`) to put it on the ped in the inspector, or turn on **Follow the selection in Durty Cloth Tool** in the inspector to see every item you select. Only items of the build that runs on the server can appear, and the inspector tells you when the project open in DCT is not loaded there.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-0fafcb3085675eb06c23dfac11589f6751ea458c%2Finspector-show-in-game-poster.webp?alt=media" alt="Show in game from DCT: the Male 16 top is right-clicked in the item list and Show in game puts the hoodie on the ped in the Clothing Inspector, which selects it; then Show in game on the Male 1 top puts that top on the ped."><figcaption><p>Right-click clothing in DCT and choose Show in game: the ped in the inspector wears it.</p></figcaption></figure>

{% embed url="<https://gta.clothing/assets/media/v4/inspector-show-in-game-mobile.mp4?v=addd330711fa>" %}
In DCT, Show in game on the Male 16 top puts the hoodie on the ped in the inspector; Show in game on the Male 1 top then switches to that top.
{% endembed %}

The connection names the clothing that is meant, never its files. When it connects, the inspector also tells DCT the game build and language and which of your builds the server runs, and DCT answers with its version and the name of the open project. No files, account details or player information are shared. You can turn it off under **Options > Connected apps** in DCT (or press **Ctrl+K** and paste `@Allow connected`), and disconnect a connected game there.

{% hint style="info" %}
The Clothing Inspector helps you find problems quickly, but it does not replace a final test of your clothing on the game builds and frameworks your players use. See [Testing Addon Clothes](https://docs.gta.clothing/getting-started/testing-addon-clothes.md).
{% endhint %}
