Each gamebuild has different limits of YMTs. This limit seems to be 80 .ymt files per gender in total. With every GTA: Online DLC that is pushed, R* adds new clothes and therefore takes up more .ymt files - until the limit is reached.
One YMT file (per gender) can hold 128 cloth items per drawable type in total.
For example, you can have 128 cloth items of type JBIB (Shirts) for your male in one addon cloth resource. With 26 texture variations per cloth item.
Hats and shoes also count as an additional YMT if you want to hide the hair, show the hair or remove it all together, or you want to make high heels work correctly and not just be flat.
-
In game version b1604 (mpchristmas2018) we have 14 additional free .ymt slots to be used
-
In game version b1737 (mpvinewood) we have 12 additional free .ymt slots to be used
-
In game version b1868 (mpheist3) we have 10 additional free .ymt slots to be used
-
In game version b2060 (mpsum) we have 8 additional free .ymt slots to be used
-
In game version b2189 (mpheist4) we had 6 additional free .ymt slots to be used
-
In game version b2372 (mptuner) we have 4 additional free .ymt slots to be used
-
In game version b2545 (mpsecurity) we have 2 additional free .ymt slots to be used
In current game version b2612 (mpg9ec), there are rumours that the YMT limit has been increased to about 20 ymt slots, however many people face issues after reaching 6.
Bare in mind what I mentioned earlier about hats and shoes; one clothing pack would consist of male YMT and male shoes and hat YMT (creaturemetadata.ymt), female YMT, female hats and shoes (creaturemetadata.ymt).
Effects of reaching the limit
Using up more than the additional free .ymt slots for one gender in the given versions, will end up with your game crashing or other weird issues.
For example in FiveM you will end up with crashes like:
-
b1604: oven-happy-sad || GTA5.exe!sub_1406B14FC (0xf)
-
b2189: earth-august-saturn ||
FiveM_b2189_GTAProcess.exe!sub_1406D21B0 (0xf) -
b2372: yellow-stairway-december || FiveM_b2372_GTAProcess.exe!sub_14070E7A8 (0xf)
While you will be receiving errors in the console similar to:
InvokeNative: execution failed: Error executing native 0x00a1cadd00108836 at address 0x1407a0b54.
SCRIPT ERROR: Execution of native 00a1cadd00108836 in script host failed: Error executing native 0x00a1cadd00108836 at address 0x1407a0b54.
Why not put all clothes in one big .ymt file
Each .ymt file can define up to a total of 128 (0-127) cloth items per drawable type, per gender. Drawable types being jbib, feet, teef etc. - Each type representing model parts like pants, shirts, hats…
When this limit is reached, we have to create a new .ymt file in order to add more clothes.
How to prevent YMT amount related issues
The most simple way to not have any issues at all, is to just keep your addon cloth packs to a minimum. For example don’t try to have more than 1 addon cloth pack containing clothes for female & male ped or alternatively 2 addon cloth packs with each containing just male or female clothes.
You will always need to keep in mind that every cloth collection created for one gender, will end up creating 1 .ymt file. Additionally if you have special flags enabled for any of your clothes (Like Is High Heels, Cut Hairs etc), one extra creaturemetadata.ymt file will be created. This one also counts up to the general .ymt limit per gender.
In case these limits don’t satisfy your needs of adding hundreds of more modding clothes, the only case to workaround these limits is currently by overwriting clothes provided by the game itself. (So called replace mods / clothes).
You can read more about this here: