Shopping Cart
FiveM script 11abac85b780a6bfb422bb414511bacab31e72a7

[How-to] Streaming addon clothes and ped props for mp freemode models – Modding Tutorials

Hello, in this tutorial I will show you how to stream addon clothes and ped props using GTAUtil and FiveM subdir file mapping.

Requirements :

Knowledge requirements :

  • Basic command-line usage
  • Environnment variables

Download GTAUtil, extract in somewhere on your computer and add the extracted folder to your %PATH% so the executable is accessible from any location.

Some useful informations for this tutorial :


HEAD : 0,  // Head
BERD : 1,  // Beard
HAIR : 2,  // Hair
UPPR : 3,  // Arms
LOWR : 4,  // Pants
HAND : 5,  // Parachute, bag, etc...
FEET : 6,  // Foots
TEEF : 7,  // Tie, scarf, necklace, etc..
ACCS : 8,  // T-Shirt
TASK : 9,  // Bulletproof, bag, etc...
DECL : 10, // Decals
JBIB : 11, // Vest, sweat, jacket, etc...


HEAD           : 0,  // head
EYES           : 1,  // eyes
EARS           : 2,  // ears
MOUTH          : 3,  // mouth
LEFT_HAND      : 4,  // lhand
RIGHT_HAND     : 5,  // rhand
LEFT_WRIST     : 6,  // lwrist
RIGHT_WRIST    : 7,  // rwrist
HIP            : 8,  // hip
LEFT_FOOT      : 9,  // lfoot
RIGHT_FOOT     : 10, // rfoot
UNK_604819740  : 11, // ???
UNK_2358626934 : 12, // ???

gtautil genpeddefs --create --output project --targets mp_m_freemode_01,mp_f_freemode_01

We just told gtautil to create a project folder named folder targeting base dlc component / props.

It looks like we are specifying the target models here but we are not. In fact we specify the target folders / ymts names without extension.

In a skin menu this will be the first group of items in the list, starting from drawable 0 for each component / prop.

In our case this will match

modelscdimagesstreamedpeds_mp.rpfmp_*_freemode_01.ymt modelscdimagesstreamedpeds_mp.rpfmp_*_freemode_01* modelscdimagesstreamedpedprops.rpfmp_*_freemode_01_p*

mp_m_freemode_01 folder is for ped components and mp_m_freemode_01_p folder is for ped props, same for female.

  • The program is hardcoded to search for mp freemode models.
  • I don’t managed to get it working with another dlc.
  • Hairs will not be hidden by new hats / helmets, I have yet to find how to do this.

Let’s say we want to add the following mods to our project :

  1. (complete outfit)
  2. (jacket)
  3. (helmet)

Download all these mods and extract them somewhere in your computer.

You will have to move the files to project folder and rename them.

Start with 0.ydd for every different component / prop
For the textures, in the ydd folders create folders 0, 1, 2 etc… Inside these : 0.ytd, 1.ytd etc…


1 – Toby Price Dakar replica outfit

Bootsfeet_001_u.ydd           => projectmp_m_freemode_01componentsfeet.ydd
Bootsfeet_diff_001_e_uni.ytd  => projectmp_m_freemode_01componentsfeet.ytd
Jacketjbib_000_u.ydd          => projectmp_m_freemode_01componentsjbib.ydd
Jacketjbib_diff_000_a_uni.ytd => projectmp_m_freemode_01componentsjbib.ytd
Pantslowr_001_r.ydd           => projectmp_m_freemode_01componentslowr.ydd
Pantslowr_diff_001_a_whi.ytd  => projectmp_m_freemode_01componentslowr.ytd

2 – Jacket Alpinestars

jbib_011_u.ydd          => projectmp_m_freemode_01componentsjbib1.ydd
jbib_diff_011_a_uni.ytd => projectmp_m_freemode_01componentsjbib1.ytd

3 – AGV

p_head_010.ydd        =>  projectmp_m_freemode_01_ppropshead.ydd
p_head_diff_010_a.ytd =>  projectmp_m_freemode_01_ppropshead.ytd
p_head_diff_010_b.ytd =>  projectmp_m_freemode_01_ppropshead1.ytd

gtautil genpeddefs --input project --output build --reserve 200 --reserveprops 200 --fivem

Why “reserving” drawables ? Because everytime you will add new mods your component ids will be shifted and all your saved outfits messed up so it prevents that.

But of course if you have any outfit saving system based on component / drawable ids it will screw up your saves the first time you do this.

Move the build folder to your server resources directory (rename it to clothes or something like that) and start it in your server.cfg.

For your convenience it also generate json files which contains informations about empty reserved drawable slots.

Enjoy :slight_smile:

Special thanks to @FuraXx and @SuperCoolNinja for testing

Leave a Reply

Your email address will not be published. Required fields are marked *

FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout