In short
To add clothing to FiveM, put the addon clothing files (.ydd models, .ytd textures and the collection's .ymt/.meta files) in a resource's stream folder and start the resource in server.cfg. The clothes are added as new IDs to the freemode character's component slots (e.g. 11 tops, 4 pants, 6 shoes). Police and EMS uniforms are then defined with those IDs in your clothing script's job outfit settings.
In this guide
- Key concepts: ped, component and drawable
- Addon clothing files and how streaming works
- Adding clothing step by step
- Clothing store integration
- Adding EUP and emergency uniforms
- Finding the right clothing numbers
- Common problems
- Clothing load and choosing a server
- Keeping your clothing pack up to date
- Start with a ready-made pack
- Next step
Adding new clothing to FiveM means loading an extra clothing collection for the freemode ped, the game's multiplayer character model. The clothes' model and texture files go in the stream folder of a resource, the resource is started in server.cfg, and the clothes show up as new options in character creation and the clothing store. Police and EMS uniforms are added the same way; the only difference is that they must be registered in your job script's settings with the correct component and texture numbers.
Key concepts: ped, component and drawable
In GTA V, the player character is one of two models: mp_m_freemode_01 for male and mp_f_freemode_01 for female. Each body area of these models is a component slot. Each slot holds multiple drawables (wearable models), and each drawable can have multiple textures (color/pattern variations).
| Component ID | Body area | Abbreviation in file name |
|---|---|---|
| 1 | Mask | berd |
| 3 | Arms / torso | uppr |
| 4 | Pants | lowr |
| 5 | Bag / parachute | hand |
| 6 | Shoes | feet |
| 7 | Accessory (necklace, tie) | teef |
| 8 | Undershirt | accs |
| 9 | Vest / body armor | task |
| 10 | Badge / patch (decal) | decl |
| 11 | Top (jacket, shirt) | jbib |
Items like hats, glasses, earrings and watches are kept separately as props: 0 hat (p_head), 1 glasses (p_eyes), 2 earrings (p_ears), 6 watch (p_lwrist), 7 bracelet (p_rwrist). Knowing these numbers makes defining uniforms much easier later on.
Addon clothing files and how streaming works
An addon clothing collection is made up of these files:
.ydd: The clothing item's 3D model (drawable)..ytd: The item's texture; each color variation is a separate file..ymt: The collection's ped variation data (how many drawables are in each slot)..meta(ShopPedApparel): The shop meta file that registers the collection with the game.
File names follow a specific pattern; for example, a male top model is named mp_m_freemode_01_mp_m_koleksiyon^jbib_000_u.ydd and its texture mp_m_freemode_01_mp_m_koleksiyon^jbib_diff_000_a_uni.ytd. Doing this naming by hand is very error-prone. The common approach in the community is to load the clothing files into a clothing packing tool (such as Durty Cloth Tool) and let it build a FiveM-ready resource. The tool generates the file names, the .ymt and .meta files and fxmanifest.lua for you.
Adding clothing step by step
- Sort the clothing files by gender; male and female models can't be swapped for each other.
- Start a new project in the packing tool, add each item to the correct component slot (e.g. jackets to jbib, pants to lowr) and link their textures.
- Export the project as a FiveM resource; you'll get a folder containing a
streamfolder andfxmanifest.lua. - Place the folder somewhere like
resources/[kiyafetler]/tr_kiyafet. - In
server.cfg, start the clothing resource before your clothing and character scripts. - Restart the server and check that the new drawable numbers show up in the character menu.
# server.cfg order
ensure tr_kiyafet
ensure tr_uniformalar
ensure illenium-appearance # or whichever clothing script you useAddon clothes are added after the original clothes in their slot. In other words, in the jacket slot the game's own items start at 0 and run up to a certain number, and your items take the numbers after them.
Important: If you change the server's game build (sv_enforceGameBuild), the number of original clothing items changes and your addon clothes' numbers shift. Saved player outfits and uniform definitions will then show the wrong pieces. Lock the game build before launch and don't change it afterward.Clothing store integration
Most clothing scripts, such as illenium-appearance, qb-clothing or esx_skin, read the total drawable count for a slot from the game. That's why addon clothes usually appear in the store with no extra configuration. Here's what you may still need to do:
- Pricing and restrictions: Some store scripts let you hide or charge for specific ID ranges. Hiding uniform IDs in the civilian store keeps civilians from wearing police outfits.
- Saved outfits: Outfits players save are stored in the database as component and texture numbers, which is why number shifts are critical.
- Gender check: A female character can't select male clothing; prepare each collection separately for both genders.
Adding EUP and emergency uniforms
EUP (Emergency Uniforms Pack) is a clothing pack made for single-player GTA V that includes public service uniforms for police, EMS, fire and more. For FiveM, use versions that have been converted to the addon clothing format. On Turkish roleplay servers, "legal" refers to public service jobs such as police, gendarmerie (Jandarma, Turkey's rural military police) and EMS; uniforms with insignia and colors that fit Türkiye noticeably improve the player experience.
After streaming the uniform, you need to register it with your job script. The logic is the same in every script: for each piece, you set the component ID, drawable number and texture number. Here's an example police uniform definition:
-- Male police patrol uniform (example values)
{
name = 'Polis Devriye',
job = 'police',
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0, -- component 8
['torso_1'] = 412, ['torso_2'] = 0, -- component 11
['arms'] = 30, -- component 3
['pants_1'] = 145, ['pants_2'] = 0, -- component 4
['shoes_1'] = 25, ['shoes_2'] = 0, -- component 6
['decals_1'] = 0, ['decals_2'] = 0, -- component 10
}
}These numbers are only examples; to find the right values, put the uniform on once in the character menu and note each slot's number. Using component 10 (decal) for rank insignia and component 9 for vests lets the same uniform vary by rank.
Finding the right clothing numbers
The most common mistake in uniform definitions is taking numbers from the wrong slot or the wrong gender. Here's a reliable method:
- Join the server as an admin and open the clothing menu.
- Put the uniform on piece by piece; each time you select a piece, note the drawable and texture number shown in the menu.
- Record the numbers in a table with columns for gender, slot, drawable and texture.
- Transfer the table into your job script, then join the job with a different character and confirm the uniform loads correctly.
This table lets you quickly see what shifted when you add a clothing collection or change the load order later. If you use a rank system, add a separate row for each rank; for example, an officer and a captain can wear the same jacket with different insignia (component 10).
Common problems
- Clothing doesn't show or the number is blank: The resource didn't start, or it started after the clothing script. Check the load order.
- Clothes clip through the body: The right arms (component 3) aren't selected; try an arms number that matches the top.
- Some players see no textures: Very large
.ytdfiles cause texture loss. For console warnings, see our Oversized Asset guide. - Old outfits broke: The game build changed or a collection's order changed. Keep the collection order fixed.
Clothing load and choosing a server
Like cars, clothing packs affect players' download time and video memory (VRAM) more than the server CPU. But when large clothing and car packs, dozens of scripts and a database all run on the same server, disk and RAM needs grow. As a rough guide, 8 GB of RAM is a healthy starting point for a mid-sized roleplay server with ready-made clothing and car packs installed. For the similar process on the vehicle side, read our FiveM addon car guide.
Keeping your clothing pack up to date
When adding new clothing, it's safer to add a new collection (a separate resource) than to edit an existing one; that way, the numbers of older items don't change. If you need to remove an item from a collection, remember that the numbers of the items after it will shift and saved outfits will break. Try major changes on a test server and take a database backup before moving them to live.
Start with a ready-made pack
Converting uniforms, localizing insignia into Turkish and pulling every slot's number one by one can take days. OyunBulut's Turkish Theme Emergency Male and Female Clothing Pack provides emergency job outfits for both male and female characters and comes with automatic installation; all you do is match the definitions in your job script.
Next step
For a roleplay server packed with clothing and car packs, the OB-FIVEM-4 FiveM server with 4 CPU and 8 GB DDR5 RAM, with a 70 GB NVMe disk and DDoS protection, is a solid foundation. Once your server is up, add the ready-made emergency clothing pack and follow the load order and uniform steps in this guide.
Frequently asked questions
Why did my clothing IDs change in FiveM?
Usually because sv_enforceGameBuild was changed. As the game build goes up, the number of original clothing items grows and addon clothes shift to higher numbers, so you should lock the game build before launch.
What is EUP?
EUP (Emergency Uniforms Pack) is a clothing pack with public service uniforms such as police, EMS and fire. In FiveM, you use versions converted to the addon clothing format.
Which component ID is the top?
Tops like jackets and shirts are component 11 (jbib), the undershirt is component 8, arms are component 3, pants are component 4 and shoes are component 6.
Do addon clothes show up in the clothing store automatically?
Usually yes, because most clothing scripts read the total drawable count for each slot from the game. The clothing resource has to start before the store script.
How do I make sure only police can wear the police uniform?
Define the uniform in your job script's work outfit settings with a restriction like job = 'police', and hide those IDs in the civilian clothing store if you can.