Clothing Designer
Design clothing in game with a layer texture editor, a live preview on your character and instant publishing.
What's included
An in-game clothing texture editor, for admins only. Whatever they publish shows up straight away in the clothing store (illenium-appearance and others) for every other player, with no server restart. Works with ESX, QBCore, Qbox and standalone.
- Layer editor: brush, eraser, images, text, shapes (circle, square, triangle, star, diamond, heart, ring and line), linear and radial gradients, fill and eyedropper.
- Layers with opacity, blend modes, hue, saturation, brightness, rotation, lock and “repeat as pattern”.
- Multi-select (Shift + click, Ctrl + A), align, centre and group (Ctrl + G). Arrow keys for precise moves (Shift = 10 px).
- Stickers: 22 included and a server library where admins save their own images.
- 8 one-click base designs: camo, urban camo, tie-dye, stripes, checks, carbon, paisley and uniform.
- Version history: every design keeps its last 10 versions, which you can restore.
- Symmetry painting, recent colours, undo and redo.
- Live preview on your own character (or on a mannequin if the garment is for the other gender).
- Designs saved in the database, with codes to share them between admins (
CD-XXXX-XX). - Publishing to Fivemanage with access for everyone, a job, a gang or admins only. “Wear it on publish” saves it to the admin's outfit.
- Management panel: published garments (search, edit access, duplicate to another variant, remove), slot wizard with “Test link” and diagnostics.
- Optional AI image generation (off by default), Discord logs and 5 languages: Spanish, English, French, German and Portuguese.
Requirements
| Resource | Required? | What for |
|---|---|---|
oxmysql | Yes | Designs, published garments, slots and library. Tables are created automatically |
| Fivemanage account | Yes | API key to upload the texture images |
| Blank clothing pack | Yes | The garments designs are published on (see “Blank pack and slots”) |
illenium-appearance | Optional | Recommended: published clothing shows in its store and saves automatically |
ox_lib | Optional | For notifications |
Installation
- Copy the resource Download it from keymaster.fivem.net → Granted Assets and put
nexo_clothingdesignerin resources. - Add it to your server.cfg After oxmysql, your framework, your clothing system and your clothing pack: the script detects them on start.
ensure nexo_clothingdesigner set FIVEMANAGE_MEDIA_API_KEY "your_fivemanage_key" # optional set cd_discord_webhook "https://discord.com/api/webhooks/..." set cd_ai_key "your_ai_key" # permission to open the editor (one of the possible ways) add_ace group.admin clothingdesigner.use allow
- Database Tables are created automatically on start. If you prefer, import
sql/install.sqlmanually. - Check the install Type
cd_checkin the server console: it tells you if anything is missing (database, Fivemanage key, slots…). - Open it Join as an admin and type
/clothingdesigner.
nexo_clothingdesigner and change the ensure. The clothing_designer_* tables are renamed to nexo_cd_* automatically on start: you don't lose designs or published garments. Exports are now exports.nexo_clothingdesigner:....Who can open it
Meeting any one of these is enough (Config.Permissions in config.lua):
| Method | Example |
|---|---|
| Ace permission | add_ace group.admin clothingdesigner.use allow |
| Framework group | ESX admin, QBCore admin / god. Qbox and standalone use group.admin |
| Specific identifier | 'license:xxxx', 'discord:xxxx' |
The server checks it on every action (open, save, publish, delete, use AI), so a regular player can't bypass it by sending events manually.
Blank pack and slots
GTA doesn't allow creating new clothing in real time. The script replaces the texture of existing garments, so you need a pack of garments with a white texture reserved for designs:
- Pick the base garments you want to offer (t-shirt, hoodie, trousers, bandana…).
- Duplicate them in your clothing pack (for example with CodeWalker or Durty Cloth Tool) with a white texture and several variants (a, b, c…). Each variant can hold a different design.
- Stream the pack like any other addon clothing and register each garment as a slot.
- Put on the blank garment In the clothing store.
- New slot from my outfit Open the editor → Management → Slots → New slot from my outfit and pick the garment. Component, drawable and number of variants are filled in automatically.
- Generate txd and txn In the name generator enter your pack's DLC and file number (for example,
mp_m_freemode_01_mp_m_mypack^jbib_diff_004_a_uni.ytdhas DLCmp_m_mypackand number004) and press Generate txd and txn. - Test link For 6 seconds the garment shows a red and white checkerboard. If it does, the names are correct. If it doesn't change, check the DLC and number.
- Save slot It's saved in the database and reaches every player straight away, with no restart. You can preset your pack's DLC in
Config.SlotWizard.
Manual way: add each garment to Config.Slots. drawable is the garment number (put it on and type /cd_slotinfo, you'll see it in F8), textures how many variants it has, and txd / txn the .ytd name without the extension and the name of the texture inside it. %s is replaced by the variant letter.
{
id = 'tee_m_01', template = 'tee_m', gender = 'male',
type = 'component', index = 11, drawable = 413, textures = 8,
txd = 'mp_m_freemode_01_mp_m_cdesigner^jbib_diff_001_%s_uni',
txn = 'jbib_diff_001_%s_uni',
},Templates and UV mesh
Config.Templates defines what shows in the Templates tab. Each template has a silhouette (shape) that draws an approximate UV. To see your garment's real UV, export the UV mesh as a 1024×1024 PNG with a transparent background (from Blender, 3ds Max or ZModeler), put it in web/templates/ and set it on the template:
{ id = 'tee_m', label = 'T-shirt', gender = 'male', category = 'JBIB', shape = 'tee', uv = 'templates/tee_m.png' },With illenium-appearance and others
- The admin publishes For example, on texture 2 of drawable 413 in component 11.
- Everyone gets it Online players apply the texture straight away and anyone joining later gets it on connect.
- It shows in the store That variant already shows the design. Players pick it like any other garment and illenium saves it to their character.
| Clothing system | Applied on publish | Saves automatically |
|---|---|---|
| illenium-appearance | Yes | Yes |
| esx_skin / skinchanger | Yes | Yes |
| fivem-appearance | Yes | If you add your save event in bridge/client/appearance.lua |
| qb-clothing / others | Yes | No: the admin saves it from their wardrobe |
Restrictions: if a garment is only for a job, a gang or admins and someone without access puts it on, the script removes it and lets them know. With Config.Restrictions.blockUnpublished = true variants without a design yet are removed too (turn it on once your slots are set up).
Fivemanage
- By default (
mode = 'presigned') the server requests a signed URL and the menu uploads the image straight to Fivemanage, without the megabytes going through your server. - If that fails, it switches to
mode = 'server'automatically: the image goes to the server and the server uploads it. - Only URLs from the domains in
ServerConfig.Fivemanage.allowedHostsare accepted.
AI (optional)
Set Config.AI.enabled = true in config.lua and set cd_ai_key "..." in server.cfg.
openaiprovider: uses OpenAI's image API. Model and size are set inconfig_server.lua.customprovider: your own endpoint. It receives{ prompt, size }and replies{ image: "data:image/png;base64,..." }or{ url: "https://..." }.- Cooldown and hourly usage limit per admin. The key never reaches the client.
Stickers
The 22 included stickers are in web/stickers/. To add your own, copy the PNG or SVG into that folder and add it to web/stickers/index.json. Admins can also save any layer image to the server library (“To library” button): it's stored in the database and every admin sees it (up to 100).
Performance
- Each published texture is drawn with a DUI (an internal browser). Only the ones worn by nearby peds are loaded, up to
Config.Streaming.maxActive(40 by default), and the ones unseen the longest are reused. - With the editor closed, the cost is one check of your outfit every 400 ms and one of nearby peds every 2 s.
Commands, diagnostics and exports
| Command | What it does |
|---|---|
/clothingdesigner (/cdesigner) | Opens the editor (admins only). With Config.OpenKey = 'F7' also with a key |
/cd_slotinfo | Prints the drawable, texture and slot of what you're wearing to F8 |
cd_check | Install diagnostics (console, admin chat or Management → Diagnostics) |
cd_check checks oxmysql and the tables, the detected framework and clothing system, the Fivemanage key (with a real request), AI and the Discord webhook, and slots: missing templates, duplicate garments, slots without %s, unchanged example values and garments published on deleted slots.
exports.nexo_clothingdesigner:IsAdmin(source) -- true/false exports.nexo_clothingdesigner:GetPublished() -- published garments table
Troubleshooting
| Problem | Solution |
|---|---|
| “You don't have permission” | Check the add_ace or the groups in Config.Permissions. In ESX the group must be admin in the database. |
| The editor opens but the ped's texture doesn't change | txd / txn don't match your pack. Use Test link in Management → Slots. |
| I don't know what's wrong | Type cd_check in the server console. |
no_key error on publish | set FIVEMANAGE_MEDIA_API_KEY is missing from server.cfg. |
| The garment looks blank for a few seconds on join | It's the texture's first download. After that it's cached. |
| AI doesn't show up | Config.AI.enabled = false is the default. |
Editable files
| File | What for |
|---|---|
config.lua | Editor settings: who can use it, command and options. |
config_server.lua | Server settings: Fivemanage, AI and logs. Keys go in your server.cfg as convars. |
bridge/client/ | Client-side connection to your framework and clothing system. |
bridge/server/ | Server-side framework connection. |
locales/ | Texts in 5 languages (interface texts are in web/js/locales.js). |
web/ | Editor interface, stickers (web/stickers/) and template UV meshes (web/templates/). |
sql/ | Database tables, in case you want to import them manually. |
FAQ
Do I need to restart the server to see new clothing?
No. When you publish a design, every player has it straight away.
Who can design clothing?
Only admins (by ace permission, framework group or identifier). When publishing, you decide who can wear each garment: everyone, a job, a gang or admins only.
Where are the textures stored?
They're uploaded to Fivemanage automatically.
Is the code encrypted?
The core is protected with Cfx.re escrow. Config, translations and integration points stay open.
Do I get updates?
Yes, for free. New versions appear in your Keymaster and we announce them on Discord.
What if something doesn't work?
Open a ticket on our Discord with the console error and we'll help you.
Changelog
- Renamed to nexo_clothingdesigner: 1.0 tables migrate automatically
- In-game slot wizard with “Test link”
- Stickers: 22 included and a server library
- Published garments panel: search, edit access, duplicate to another variant and remove
- Gradients, new shapes and layer rotation
- Multi-select, align, centre and group
- 8 one-click base designs and a 10-version history
- French, German and Portuguese, and diagnostics with cd_check
- Fixed: black panel on some FiveM browser versions and a “Saving…” notice that got stuck
- First release