Game Limits and Crashes
Learn about GTA V's clothing related game limits and crashes
Last updated
Learn about GTA V's clothing related game limits and crashes
Last updated
Internally the game has a fixed amount of .ymt files that can be loaded in total. This limit seems to be 80 (before mpg9ec) around 100 (since mpg9ec) .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.
Additionally there is a limit of components/props that can be added per drawable/component type.
Clothes are categorized into components and props, where components are everything you wear as clothes (Shirts, Pants, Shoes etc) and props are everything you can put on top of your model (like hats, glasses, watches, ear rings etc.)
Internally we call all these types together drawable types, the game currently has 25 drawable types in total. Some of them are unused tho.
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 PV_COMP_JBIB (Component id 11 / Shirts) for your male in one addon cloth resource. With 26 variations per cloth item, this would be 128 * 26 = 3.328 shirt variations. Going beyond this limit can and will cause game crashes.
For Props there is an additional limit of 255 total props per gender allowed to exist in the entire game (base + addons). This limit only applies to RageMP and FiveM Client Version below 7559.
Going beyond this limit will in most cases not cause any game crashes but instead just appear as invisible props. You won't see the props like hats beyond the limit of 255 total of their respective type.
Important Notice: The 255 props limit got patched in FiveM Client Version 7669+ and latest alt:V Client Releases
FiveM patched the ped props limit of 255 from 8bit to 32bit, which increases the ped prop limit to a total of 2,147,483,647 props. This means there is basically no need to consider any limit in this regards anymore.
To achieve this, you are required to use the server artificacts number 7669 or above and run the FiveM client on Latest (Unstable). Please note that instabilities may occur as this channel is mainly for public testing of new features, until Cfxre pushes it out to public release.
GTA5Mods users Zombieguy and William Halverd have made an ASI version of the FiveM patch which basically patches the limit of the ped props that characters use (Mostly mp freemode), and replaces the limit of 255 from RAGE of 8bit style to 32bits, which increases as result the ped prop limit to a total of 2,147,483,647 props. This patch was tested on the current game build (3095v Chop Shop Update), and it will work at least the older version 2372v (Los Santos Tuners). To install it, simply drag and drop into the root folder of GTA V. You will need the latest ASI loader and ScriptHookV for it to work as intended.
Download the ASI file here: https://www.gta5-mods.com/scripts/pedprop-limit-adjuster (Credits: Zombieguy and FiveM team)
For High Heel configurations (creaturemetadata) there is an additional limit of 255 total per gender allowed to exist in the entire game (base + addons). This limit only applies to RageMP and FiveM as alt:V patched this in most recent updates.
Going beyond this limit will cause the high heels to not properly function / have any "high heel" effect.
Durty Cloth Tool will automatically make sure you are not hitting any of these limits, and warn you if you do
YMT limit applies to each gender seperately.
For example, if we talk about 10 additional free .ymt slots available, it means you have 10 .ymt slots for female and 10 .ymt slots for male ped.
Lets take a look at how Rockstar Games takes up the free .ymt slots every update:
In game version b1604 (mpchristmas2018) we had 14 additional free .ymt slots to be used
In game version b1737 (mpvinewood) we had 12 additional free .ymt slots to be used
In game version b1868 (mpheist3) we had 10 additional free .ymt slots to be used
In game version b2060 (mpsum) we had 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 had 4 additional free .ymt slots to be used
In game version b2545 (mpsecurity) we have 2 additional free .ymt slots to be used
In game version b2612 (mpg9ec), R* seems to have increased the YMT limit, we have about 20 additional free .ymt slots to be used
In game version b2699 (mpsum2), we have about 16 additional free .ymt slots to be used
In game version b2802/b2824/b2845 (mpchristmas3), we have about 14 additional free .ymt slots to be used
In game version b2944 (mp2023_01), we have about 12 additional free .ymt slots to be used
In game version b3095 (mp2023_02), we have about 10 additional free .ymt slots to be used
In latest game version b3258 (mp2024_01), we have about 8 additional free .ymt slots to be used
Please note that adding heels and head props to your pack will create an additional ymt file known as 'creaturemetadata' which will count towards your gamebuild ymt limit. For example, if we are on gamebuild b3095 (mp2023_02), we have about 10 additional free .ymt slots to be used.
If we create a pack with high heels, we would be using 3 YMTs; Male clothing, Female clothing, Male & Female hats props and female heels.
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)
b2545: zebra-east-berlin
|| GTA5_b2545.exe!sub_140712C8C (0xf)
b2944: low-cola-sweet
|| GTA5_b2944.exe!sub_14071C644 (0xf)
b3095: iowa-beryllium-missouri
|| GTA5_b3095.exe!sub_140722454 (0xf)
While you will be receiving errors in the console similar to:
TxdStore Pool Full, Size == 95500
errorAdding more YTD files than a certain limit by either putting new vehicles, new clothes, new MLOs or similar on your server, will possibly cause a game pool full error, which essentially means that you have hit the total amounts of YTD files supported by the game.
This error was previously known as
pool full size == 85500
For example in FiveM you will end up with crashes like:
The only way to currently fix this is by trying to shrink down the amounts of YTDs you are adding to your game/server. This means you will have to remove either some other mods (like vehicles / mlos etc) or some clothes from your clothes resource.
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.
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.
Lets say we run some multiplayer mod with the GTA Online Update mptuner
, which has 4 free YMT slots for clothes (it was before R* raised the YMT limits a bit).
We create one basic addon cloth pack with female and ped clothes, without any special flags (Is High Heels, Cut Hairs etc). This should work fine as we are now using up 2 of the 4 additional .ymt slots we have available. This would be enough to create one additional basic addon cloth pack.
Setting special flags like Is High Heels, Cut Hairs etc will generate an additional YMT file that will also count towards the YMT limit
Another example would be creating 2 basic addon cloth packs, each having male & female clothes without any special flags set. This should be fine as we are now using up 4 of the 4 additional .ymt slots. We will not be able to use any additional addon cloth pack.
Each of our basic addon cloth pack / resource will take up 2 YMTs (1x male clothes, 1x female clothes)
Lets do another one with 1 advanced addon cloth pack. We have 1 addon cloth pack that contains female & male clothes + special flags set (high heels flag and cut hairs for example). This will end up using up 4 of the 4 additional .ymt slots available. We will not be able to use any additional addon cloth pack.
With special flags set there will be an additional YMT file generated that is needed to make this work, this will count towards the general YMT limit
This error is tied to an internal GTA V game engine limit, specifically concerning the Ped Alternate Variations feature (pedalternatevariations.meta). This feature defines alternative models for clothing or hairstyles to prevent visual glitches when certain clothing items, like large masks or hoodies, are worn. These alternative models ensure that, for example, hair does not clip through hoods or masks. The error arises when the game exceeds the limit of 160 ped alternate variations per clothing item.
This error is not only caused by GTA V clothing related things. A lot of other stuff can also cause this but recently it seems like we are hitting this more often in scenarios related to clothing. Keep this in mind as anything written below might only be a possible cause and solution.
The game is hardcoded to handle a maximum of 160 ped alternate variations per piece of clothing. This limit may stem from legacy constraints of older console generations, despite the game engine technically being capable of handling more. When this limit is exceeded, for example, by adding many addon hairstyles or clothing that properly utilizes the Ped Alternate Variations system, the game will crash with the ERR_MEM_MULTI_ALLOC_FREE error.
For instance, if you have 81 hairstyles in the game, adding a large mask that removes or alters the hairstyle requires 81 alternate models (one for each hairstyle). This already consumes 81 out of the 160 allowed ped alternate variations. If you also add 79 custom hairstyles, you will hit the limit, causing the crash.
Temporary Workaround: You can delete the pedalternatevariations.meta
file and its reference in the fxmanifest
file. Keep in mind that this will disable some features, such as removing or cutting hair with large masks or hoods.
DCT v3 Patch .7: The Durty Cloth Tool includes an option called "Disable extra alternate variations," which helps mitigate the crash by limiting the number of ped alternate variations generated. This prevents the game from hitting the hardcoded limit, although some features like hair cutting with masks might not work as intended.
To resolve this issue more comprehensively, a patch increasing the ped alternate variation limit to 512 (or higher) would be ideal. If this affects you, consider reporting the issue on the FiveM GitHub, providing crash dumps and any other relevant information to encourage prioritization of the fix.
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)
As Durty Cloth Tool doesn't support this yet, I will not go much into detail on how to do this.
Pleb Masters: Forge is a useful tool to figure out texture & model file paths of clothes you want to replace, as you will need the file names and collection names for replacing them. See https://forge.plebmasters.de/clothes/
Thanks to FumaPraQue
for his contribution to researching this over at the FiveM forums: https://forum.cfx.re/t/setplayermodel-crash-when-you-have-too-much-ymts-assigned-to-a-freemode-ped-model/1934063