Skip to content

How a FiveM clothing pack works, and how to make one

A clothing pack is a resource that adds new drawables to the freemode peds. Three kinds of file and one naming rule decide whether the clothes show up, stay invisible or crash every ped of one gender. Here is the layout, the rule, the limit that catches most servers, and how to make your own clothes without Blender.

What is inside a clothing pack

Clothes on FiveM are drawables for the two freemode peds, mp_m_freemode_01 and mp_f_freemode_01. A pack brings three kinds of file for each gender:

  • .ydd: the garment mesh, one per drawable.
  • .ytd: its textures, one file per texture variant (_a, _b, _c...).
  • .ymt: the collection, which tells the game how many drawables and textures each component has.

Plus a shop .meta per gender so clothing menus can list the items.

myclothes/
  fxmanifest.lua
  mp_m_freemode_01_myclothes.meta
  mp_f_freemode_01_myclothes.meta
  stream/
    mp_m_freemode_01_myclothes.ymt
    mp_m_freemode_01_myclothes^jbib_000_u.ydd
    mp_m_freemode_01_myclothes^jbib_diff_000_a_uni.ytd
    mp_m_freemode_01_myclothes^jbib_diff_000_b_uni.ytd
    mp_f_freemode_01_myclothes.ymt
    mp_f_freemode_01_myclothes^lowr_000_u.ydd
    mp_f_freemode_01_myclothes^lowr_diff_000_a_uni.ytd
fx_version 'cerulean'
game 'gta5'

files { ‘*.meta’ }

data_file ‘SHOP_PED_APPAREL_META_FILE’ ‘mp_m_freemode_01_myclothes.meta’ data_file ‘SHOP_PED_APPAREL_META_FILE’ ‘mp_f_freemode_01_myclothes.meta’

The naming rule

Most broken packs are broken by a name, and the game never tells you. It registers the drawable, cannot find the file, and the ped wears nothing in that slot.

  • One collection name everywhere. myclothes has to be the same in every file name, inside the .ymt and in the shop .meta.
  • Three digits, counted inside the collection. jbib_000, not jbib_0, and not the number your clothing menu shows. The menu number counts every pack the server loads; the file number starts at 000 in yours.
  • The right component. The short name decides the slot:
berd  masks           uppr  arms / torso    lowr  legs
hand  bags            feet  shoes           teef  chains, ties
accs  undershirts     task  body armour     decl  decals
jbib  tops, jackets   p_head, p_eyes...     props (hats, glasses)

Props such as hats and glasses live in their own collection with an extra _p: mp_m_freemode_01_p_myclothes^p_head_000.ydd.

The limit that crashes servers

GTA loads only a handful of extra clothing collections per gender, and the number depends on the game build. Go one over and the client crashes while building the ped, and it is every ped of that gender, not just the one wearing the new item. The female side usually runs out first.

The fix is to merge: one collection holds up to 128 drawables per component, so ten small packs can become one collection and cost one slot instead of ten. The per-build slot table and the three ways around the limit are in the clothing YMT limit guide.

When you merge, renumber the drawables so each component runs from 000 without gaps, and rename every file to the one collection name. A gap or a leftover old name is a missing item, not an error.

Making your own clothes

You do not need Blender or a 3D artist to put your own design on a garment. Clothing Editor V2 has 4193 base-game and DLC garments loaded: pick one, paint it or drop your logo on it while the 3D ped updates live, and export a complete add-on with the .ydd, .ytd, .ymt, .meta and fxmanifest already named correctly. A logo can be raised into a stitched patch through the normal map, and parts of a garment can glow.

The rest of the wardrobe has its own tools: custom chains, tattoos placed on the ped, and a whole custom ped from one picture when you want a character rather than an outfit.

Each export is one garment as its own small collection. To keep the slot count down on a big server, merge those into your main pack the way the section above describes.

Install

  1. Put the folder in resources and add ensure myclothes to server.cfg.
  2. Restart the whole server. Clothing metas are only read when the server starts.
  3. Open your clothing menu and find the new drawables at the end of their component.

If an item is invisible, see EUP or clothing invisible. If every ped of one gender crashes, you are over the slot limit.

Frequently asked

Why do I see the clothing in the menu but the ped looks naked?

The drawable registered but its file did not resolve. Almost always the name: the collection name in the file names, the .ymt and the .meta has to be identical, and the drawable number has to be three digits, counted from 000 inside that collection.

How many clothing packs can a server run?

It depends on sv_enforceGameBuild. Each pack costs one .ymt slot per gender, and newer game builds allow only a few. Merge packs into one collection to stay under the limit.

Do I need to restart the server after adding clothes?

Yes, a full restart. Clothing metas are only registered when the server starts, so ensuring the resource on a running server is not enough.

Can one pack hold both male and female clothes?

Yes. A pack has one collection per gender: an mp_m_freemode_01_ set and an mp_f_freemode_01_ set, each with its own .ymt and .meta.

Are free clothing packs safe to use?

Check two things: the licence (many packs, EUP included, may not be resold or put on a public server) and how many .ymt slots the pack takes. A free pack that pushes the server over the slot limit will crash every ped of that gender.

Try it free

Create a free account, join the Discord for your credits, and build your first asset in minutes.