Skip to content

About

Paint GTA V / FiveM addon clothing textures with a live 3D preview, and manage the whole clothing pack (add, move, delete pieces, .ymt, options) in one desktop app.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ClothingStudio

Paint GTA V / FiveM addon clothing with a live 3D preview, and manage the whole clothing pack from one app.

Download Tests License: GPL-3.0 Platform: Windows Built with Electron

ClothingStudio: texture painter on the left and centre, live 3D preview and colour wheel on the right

Open an addon clothing resource (a folder with stream/, .meta files and fxmanifest.lua), pick a hat, top, pair of pants or badge, paint on its texture while the 3D model updates as you go, and press Save to YTD. It also does the boring parts of running a clothing pack: adding, moving and deleting pieces without breaking the numbering, adding more textures (a, b, c …), keeping the pack's .ymt right, and building a clean FiveM resource or a single-player DLC pack. It speaks 11 languages.

No more exporting a texture, editing it in another program, importing it back, and loading the game to see what it looks like.


What you get

Paint like in a normal image editor

The Text tool Text that stays editable. Click the texture and type. Pick any font installed on your PC (each shown in its own face), size, bold / italic / underline / strikethrough / ALL CAPS, alignment, letter and line spacing, outline, drop shadow, mirror the text left-right or up-down, turn it to any angle. The text is on its own layer marked T: click it again later to retype or restyle it. You can also load a font file.
The Layers panel Layers with big, clear buttons. New, Duplicate, Up, Down, Lock, Merge, Rename, Delete, each with a picture and a word. Eye and padlock on every layer, opacity, Photoshop's blend modes (Multiply, Overlay, Hard light, Colour burn …) and clipping masks, import an image as a layer or as a see-through guide. A locked layer cannot be painted on, moved or deleted by accident.
Fabric look: prints that look printed, not pasted. One dialog lays the shirt's own folds and creases and a fabric grain (cotton, jersey knit, denim, canvas, sports mesh, fleece, leather) over your logo, can bend it along the creases (like Photoshop's Displace) and set its ink to Multiply, with a live preview on the texture and the 3D model. It all lands as normal layers you can tweak.
The colour wheel A proper colour wheel with hue ring and saturation / brightness square, H S B and R G B boxes, hex field, previous colour, recent colours and screen pick (grab a colour from anywhere on your screen).
The Resize tool Resize tool. Move, scale, rotate and flip any layer, with handles and exact numbers, plus Fit / Fill / Stretch. Drop in a logo, size it, done.

Also: brush with hardness and pressure, eraser, fill, colour picker, line, rectangle, oval, mirror painting, move layer, zoom and pan, undo / redo, export PNG, save your layers to a file and carry on later, paste or drop images in. Keyboard shortcuts for nearly everything, Photoshop-style (brush size and opacity, layers, zoom, next texture / next piece …): press F1 to see them all.

See it on the model, live

The 3D view in its own window

The 3D view updates while you paint. Show it full screen, or pop it out into its own window on a second monitor. Turn on Body to see the piece on a freemode mannequin (read from your own copy of GTA V; see the guide). The coloured wireframe on the canvas is the model's real UV layout, so you can see exactly what you are painting.

Manage the pack

The Pack list Pack list. Male and Female, grouped by category, with a filter box and a ⋯ menu on every piece.
The piece menu Move, swap, delete, add textures. Move Top 002 up and it swaps with Top 001 (model and every texture renamed together). Delete Top 001 and Top 002 becomes Top 001. Everything the game stores by number (the .ymt) follows. Deleted files go to the Recycle Bin. Copy a texture to other pieces in one go (Ctrl+D): each gets it as its next letter.
Adding pieces Add pieces. Drop .ydd models in. If a name does not say what it is (say chest_badge.ydd) the app asks: badge, hat, pants …, male or female, shows skin or not. Add textures from PNG / JPG / WEBP or ready-made .ytd files; an image bigger than the pack's textures asks whether the new texture should be bigger too (up to 4096×4096).
Piece options Piece options like grzyClothTool's Drawable Options: audio, flags, render flag, hair scale for hats, high heels for shoes, shows skin. The .ymt and the creature metadata file are kept right for you.
The .ymt check The .ymt is kept in step. The top bar tells you if the .ymt matches your files, and one click fixes it. The original is saved once as .bak.

New makes an empty pack, Build writes a clean FiveM resource you can drop into your server's resources folder, or a single-player DLC pack (dlc.rpf) for story mode.

In your language

The whole program (buttons, tips, questions, messages, the 3D pop-out, the file dialogs) is available in 11 languages: English, Español, Português (Brasil), Français, Deutsch, Русский, Türkçe, Polski, Italiano, Nederlands and العربية. It starts in the language of your PC; the 🌐 button at the top right changes it on the spot. The translations were made with machine translation and not yet checked by native speakers: a text that is not translated shows in English, and fixing or adding a language is a small text file, see Translating.

Single player as well

Build → Single player (dlc.rpf) writes your pack as a DLC pack for story mode, with the install steps. It follows the layout of the game's own clothing DLCs and the archive is read back and checked, but it has not been tried in game yet; see the guide.

Built to not lose your work

  • Every .ytd / .ymt is backed up once as .bak the first time it is changed.
  • Nothing is deleted for good: removed files go to the Windows Recycle Bin, under their real name, so Restore works.
  • A journal records every rename while an operation runs, so a crash or power cut half way is undone automatically the next time you open the pack.
  • New .ymt files are re-read and checked before they replace the old one; ones the app does not fully understand are left alone and reported.
  • 200+ automated tests cover the file formats, every pack operation, the single-player archive writer and the translations (npm test, no game files needed).

Quick start

Easiest: download the ready-to-run program. Open the latest release, download ClothingStudio-…-win-x64.zip, unzip it anywhere (your desktop, a USB stick) and double-click ClothingStudio.exe. Nothing to install. (Windows may warn about an "unknown publisher" because the program is not code-signed: choose More info → Run anyway, or build it yourself from the source as below.)

From the source code (needs Windows 10 or 11 and Node.js 20+): click the green Code button above → Download ZIP (or git clone the repository), open a terminal in the unzipped folder, then:

npm install
npm start                # run it
npm run package          # or build your own portable copy: dist/ClothingStudio-win32-x64/ClothingStudio.exe

Then:

  1. Open pack… (or drag your resource folder onto the window).
  2. Click a piece in the Pack list, then a texture letter (a, b …).
  3. Paint. Watch the 3D view.
  4. Save to YTD (Ctrl+S). Restart / refresh the resource on your server.

New to this? Follow the tutorial; it takes about ten minutes and covers painting, text, layers, adding a piece and building the resource.


Documentation

Document What is in it
Tutorial Your first custom hat, step by step, with pictures
User guide Every tool, button and shortcut, explained
Pack format How a clothing pack is organised: file names, .ymt, creature metadata, what each option does
Troubleshooting "It says…", "I can't…", "The game shows…"
Translating Fix or add a language: the file format, the rules, the checker
Technical notes How it works inside: file formats, safety design, tests, building
Changelog · Contributing · Notices & credits

Good to know

  • Verified by decoding, re-encoding and re-reading real packs, not by loading them in GTA V. Keep the .bak files until you have looked at the result in game.
  • Textures are written back in their original format (DXT1, DXT5, BC7 or A8R8G8B8, mips regenerated) and size, unless you choose to make a texture bigger when you bring in a bigger image (2×, 4× … up to 4096×4096). DXT is compressed, so very smooth photographic gradients can band slightly; logos and flat art look great. BC7 keeps gradients much better than DXT.
  • ClothingStudio edits textures and the pack's bookkeeping files. It does not edit the 3D models themselves.
  • Splitting packs of more than 128 pieces, and the replace / AltV layouts, are not done yet. The single-player DLC pack is built from the layout of the game's own DLCs and verified by reading the archive back, not by loading it in the game; keep a backup of your game files. Opening an existing dlc.rpf to edit it is not possible yet (Build only writes one).
  • The translations are machine-made. Messages that come from the file-format code (the part after the colon in "Could not add the textures: …") are in English.
  • The mannequin needs the legacy GTA V edition installed; everything else works without any game installed.

Credits and legal

ClothingStudio stands on the shoulders of CodeWalker (file-format knowledge, GPL-3.0) and takes its conventions from grzyClothTool. See NOTICE.md for the full list.

This is a fan-made tool and is not affiliated with Rockstar Games, Take-Two, Cfx.re or FiveM. It contains no game files. Only open packs you have the right to modify.

License

GPL-3.0-or-later. Because parts of this project follow GPL-3.0 code from CodeWalker, anything you distribute that includes ClothingStudio must also be GPL-3.0.

About

Paint GTA V / FiveM addon clothing textures with a live 3D preview, and manage the whole clothing pack (add, move, delete pieces, .ymt, options) in one desktop app.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages