Update 2021-05-12
After not having worked on anything FiveM related for a few months I am going to get back into it. One of the first things I want to do is finally complete this tool. Expect updates and fixes to becoming soon.I came across this great tutorial while trying to get addon clothes for my server.
How ever when you want to turn the entirety of EUP Law & Order and EUP Serve & Rescue into the right file structure for gtautil to convert into an addon mod you would be manually renaming about 3800+ files.
So I created a tool to do all the copying and renaming quickly into the right sub folders, in about a minute or two.
Here is the git for the tool, I haven’t written any documentation for it yet. You will also need visual studio to run it.
If you look throughout the Form1.cs class there are path variables for different things.
Path Variables
Line 43: The folder where the clothes and such are stored (it will scan into the sub folders)
Line 252: Where the finished stuff needs to be coppied to, this directory must be generated with gtautil so that is has all the proper sub folders for male female, mprops and fprops.
Line 290: Same as 252
Line 500: Is a folder I made that has every single gta clothing model in it, this is to import some models for textures that didnt come with models
What do the buttons do:
Load Files: Loads all the ytd and ydd files in all sub-folders of the directory provided on line 43
Execute: Will start copying and renaming files to the output directory. Generate this directory with gtautil so that it has all the subfolders for male and female stuff.
Not Copied: This returns a list of all the files that were not copied during the execute phase, this is due to the models not being available for the textures. ie: the file you are loading is only a reskin of an existing gta model.
GTA Models: This loads a directory which I made that has every single clothes model file from gta. This cam down to copying every file out of gta using open iv, might upload that folder somewhere later.
Fix Models: This well get the list of all not copied textures and match them to vanilla gta models, then it will copy and rename the models and textures. This way you will have these textures with the original gta models.
What still needs to be done to the tool:
- Need to a file browsers so you can select your folders
- Need to write a proper manual
- Need to add support for all ped prop types
This is marked as a Work In Progress, feel free to try and use it now but you will need some C# knowledge to know what you are doing.
With regards to the todo list, I am open to pull requests (no idea how those work but ill ask a mate) for implementing the file browser and such as I was unable to get those working at the time. I am mostly busy developing on my server at the moment so don’t have a lot of time to polish this tool but will try and get around to it sometime this week.
I have uploaded the AllGtaModels files. Keep in mind these are R*'s models all just put in one convenient place so that my tool can reference them in case the clothing pack you have needs vanilla models.
AllGtaModels For use with clothing tool