# Testing Addon Clothes

## How To Test Add-On Cloth Resources 👕

Testing your add-on cloth resources **should always happen on a clean enviroment** - This means that you should ideally not run any other mods or server resources other than what is ***needed*** to test your new clothes.

Depending on the type of add-on resource, this can be different.

All add-on clothing items will **always** appear at the end of your clothing scripts such as Menyoo or vMenu, if you are struggling to find them, please reach out to the respective script creators, as we cannot garauntee support for each and every script.

{% hint style="info" %}
Please keep in mind this article is currently work in progress and will be enhanced further (with screenshots etc) in the future.
{% endhint %}

### Testing On alt:V

* Download and setup a clean alt:V [server](https://altv.mp/#/downloads). See the docs for more information regarding [setting up a windows server](https://wiki.altv.mp/wiki/Tutorial:Setup_Windows_Server).
* Download alt:V [Better Clothing Menu](https://github.com/LeCyreaxYT/altv-better-clothing) and put it in your **server / resources folder.** Make sure to add the resource name to the server.cfg file
* Move the Durty Cloth Tool generated add-on generated resources to your server/resources folder Add yourclothtoolresourcename (Should be named like your cloth collection, visible in the build window) to your server.cfg as a seperate line below resources: \[ and before the enclosing ]

Your server.cfg resources configuration could look similar to this:

```
resources: [
  altv-better-clothing,
  newclothes1
  newclothes2
  newclothes3
]
```

The order in which you add your clothing to your server.cfg, is the order it will appear *after* the Grand Theft Auto Online clothing. We can of course rearrange our clothing resources to our own preference, such as newclothes2, 1 then 3.

* Start your server and connect to it (localhost)
* Once in your server, press `F6` to open the cloth menu and browse through your new added clothing.

**They are always added to the end of the list.**

### Testing On FiveM

{% hint style="danger" %}

#### Please ensure you are subscribed to Cfxre's [Cfx.re Element Club Argentum](https://www.patreon.com/fivem).&#x20;

#### The Element Club Argentum allows server owners to stream custom clothing within the FiveM platform, without it your clothes will most likely not be visible in game.

{% endhint %}

{% hint style="info" %}
Alternatively, you can set your player slots to 10 in your txAdmin or server.cfg.

*Please refer to their forums on how to do this as we cannot provide support for each and every platform.*
{% endhint %}

* Download and setup a clean [FiveM server](https://docs.fivem.net/docs/server-manual/setting-up-a-server/)
* Download [vMenu](https://github.com/TomGrobbe/vMenu/releases) and place it within your server/resources folder

\*See detailed installation and permission steps [here](https://docs.vespura.com/vmenu/installation/#installation-steps).

* Move the Durty Cloth Tool generated add-on resource to your server / resources folder
* Add `ensure yourclothtoolresourcename` (Should be named like your cloth collection, visible in the build window) to your [server.cfg](https://docs.fivem.net/docs/server-manual/setting-up-a-server-vanilla/#servercfg)
* Start your server and connect to it (localhost)
* Press `M` on your keyboard to open the menu and browse thru your new added clothes (They are always added to the end / last DLC clothes).

The order in which you add your clothing resources to your server.cfg, is the order it will appear in your clothing menu scriptss, *after* the original Grand Theft Auto Online clothing. For example;

```cfg
ensure ClothPack4
ensure ClothPack2
ensure ClothPack1
ensure ClothPack3
```

In the example above, we would have 4 clothing packs, however in the order of 4, 2, 1, and 3. We can of course rearrange this to our own preference.

*Please note that we can not provide support for other clothing menus.*

### Testing on Singleplayer

* Download and install **OpenIV** (<https://openiv.com/>)
* Open **OpenIV ASI Manager** and install **ASI Loader & OpenIV.ASI**
  * This allows for loading additional singleplayer mods without editing the original game
  * See the official tutorial by OpenIV regarding this [here](https://openiv.com/?p=1132)
* There now should be a **mods folder** in your games directory. If not, it is highly recommended that you create one. Once you have done so, open this directory.
* Move the by Durty Cloth Tool generated `dlc.rpf` file to this sub folder of your mods folder: `mods/update/x64/dlcpacks` (Create it if its not there)
* In order to make the game load this new dlc.rpf file, we need to modify the games dlclist.xml, this can be done by searching for dlclist.xml using OpenIV and copying it to your mods folder: `mods/update/update.rpf/common/data` (Create it if its not there)
* Edit the last entry of your dlclist.xml file and make sure to add a similar entry with the name of your addon cloth resource (DLC name you have configured in your project settings in Durty Cloth Tool)

```xml
<Item>dlcpacks:/clothpacknew/</Item>
```

Much like in our alt:V and FiveM examples above, you can organize your add-on clothing to appear in the order you desire, which will appear *after* the default Grand Theft Auto Online clothing;

```xml
<Item>dlcpacks:/clothpacknew/</Item>
<Item>dlcpacks:/clothpacknew3/</Item>
<Item>dlcpacks:/clothpacknew2/</Item>
```

* To apply the new clothes you will need some mod menu, suggested ones are:
  * Menyoo 2.0: [GitHub](https://github.com/itsjustcurtis/MenyooSP/releases), [5mods](https://www.gta5-mods.com/scripts/menyoo-2-0)
  * [Character Menu](https://gta5-mods.com/scripts/charactermenu)
  * *(Please see related installation guides there)*

## Notes

{% hint style="warning" %}
**It is crucial that you are aware of the YMT limits within the game. This can differ depending on the version of your gamebuild.**

Please refer to the [game-limits-and-crashes](https://docs.gta.clothing/game-mechanics/game-limits-and-crashes "mention") page for more information regarding this.
{% endhint %}

{% hint style="info" %}
It is also recommended that your packs are in lowercase, for example `myclothpack1` rather than `MyClothPack1`. It has been reported that uppercase clothing files can / may cause issues.
{% endhint %}
