Skip to content

How clothing packs work

This page explains the few game rules behind a clothing pack. You don’t need them to use the studio, because it names, numbers and lists everything for you. They make the studio’s messages easier to understand. A short version is in the app under Help → Clothing guide.

The Clothing guide window (Help → Clothing guide)

A clothing pack is a folder your server starts, like any other FiveM resource. Inside it:

File What it is
.ydd The model of one garment. One file per piece.
.ytd A texture dictionary: one colour of a piece. One file per colour.
.ymt The list that tells the game which pieces and colours the pack holds. One for men, one for women.
shop .meta Optional. Puts the pieces in the game’s own clothing stores. One per gender.
fxmanifest.lua The resource manifest, like every resource has. It loads the shop meta.

The models, textures and .ymt files sit in the pack’s stream folder. The studio writes the .ymt and the shop meta for you and renames every file to the name the game expects. You never have to open them.

Every pack is a collection for each gender. The collection name comes from the pack name:

  • men: mp_m_freemode_01_mp_m_<name>
  • women: mp_f_freemode_01_mp_f_<name>

So a pack called mypack holds files such as mp_m_freemode_01_mp_m_mypack^jbib_000_u.ydd. The part before ^ is the collection; the part after it is the slot, the number and the skin type. When you add hoodie.ydd, the studio gives it a name like that.

Pack names use lower-case letters, digits, - and _.

The game has a fixed set of places a garment can go. There are 12 body slots (tops, legs, shoes, hands, masks, hair and so on) and 11 prop slots for things worn on top (hats, glasses, earpieces, watches, bracelets…). Each slot has a short code that appears in file names, for example jbib for tops and jackets, lowr for legs, feet for shoes and p_head for hats.

A hat has to be in the hat slot for the game to put it on the head. That is why the studio asks “what is it?” and does not let you type any name. When the file name already says it, it doesn’t ask.

The full list with codes is in Clothing slots.

The male and female freemode peds (mp_m_freemode_01 and mp_f_freemode_01) have separate clothes. A piece is for one of them. If you want the same jacket on both, you need a male model and a female model.

In each slot, for each gender, every piece has a number: the first top is 000, the next 001, and so on. The game counts from zero, so the studio shows the first piece as #000. Players’ saved outfits store these numbers.

That’s why the studio always adds new pieces after the last one. It never renumbers existing pieces unless you ask for it (for example with Delete & renumber…). Outfits your players already saved keep working.

Clothing menu scripts count differently. They count across every pack your server starts, in start order, after the game’s own pieces. After an import, the studio writes a .csv that lists the number each new piece has in a clothing menu. See Add clothes.

One piece can have several colours. In the files each colour is its own .ytd. In game they are the variants you scroll through after picking the piece. Colours are lettered a to z, so a piece can have 26 colours at most.

Each body piece is one of two kinds:

  • Covers the skin (_u, universal): one colour file fits every skin tone.
  • Shows skin (_r, skin-toned): bare arms, legs or neck show through, so it carries one file per skin tone and the game picks the one that matches the player.

The letter is at the end of the model name, for example jbib_000_u.ydd. Props have no skin letter. You can change it on the piece page if the studio guessed wrong.

Limit Number What happens
Pieces per slot, per gender 128 The point where packs are normally split. The studio stops adding to a slot here and offers another pack.
Pieces per slot, per gender (hard limit) 256 Past it the game sees zero pieces in that slot, so everything in it disappears.
Props per prop slot, per gender 256 The hard limit for hats, glasses and other props.
Colours per piece 26 Letters a to z.
Shop entries on the whole server 65,520 One per piece plus one per colour, counted across every clothing pack your server starts. Over it, players crash while joining, and the crash log blames the wrong resource.

A second pack is normal, not a problem. It only needs its own ensure line in server.cfg.

The Server limits page checks all of this across your whole server. Every number is in Game limits.

  1. Your server.cfg names the pack on an ensure line, for example ensure mypack. A pack that is not named there is never loaded.
  2. When the server starts the resource, FiveM reads everything in its stream folder: the models, the colours and the .ymt lists.
  3. When a player joins, FiveM downloads those files to the player’s game and keeps them in a cache. The .ymt adds the pack’s collection to the freemode ped, so menus and scripts can put its pieces on.
  4. The shop meta, loaded by the fxmanifest.lua, adds the pieces to the clothing stores.

New clothes don’t appear until the server restarts (or until you restart the resource and players reconnect).

Some creators lock their pieces with FiveM’s asset escrow. A locked piece can’t be copied into another pack. The studio leaves it out and tells you why. There is no way around this: it is the creator’s choice, not a broken file.

Next: Add clothes.