Skip to content

Fix saved outfits

When you add, remove, reorder or renumber clothing packs, players’ saved outfits point at the wrong pieces. Fix saved outfits works out every piece’s new number and writes a SQL file your database can run. It never connects to your database.

Fix saved outfits with an outfits export loaded, showing how many saved outfits need fixing

Clothing menus number pieces in order: the game’s own pieces first, then each pack in the order server.cfg starts it. Numbers change when you:

  • add a pack before another one, or remove one,
  • change the order of the ensure lines,
  • delete pieces with renumbering (for example Remove and renumber in Duplicate clothing),
  • move or duplicate pieces between packs.

Save today’s numbers before you change anything

Section titled “Save today’s numbers before you change anything”

If you know a change is coming, save the numbers first. It makes the fix much easier.

  1. Open Tools → Server tools (Experimental) → Fix saved outfits (Experimental).
  2. Click Save today’s numbers. With no project open, pick your server’s resources folder first.

The numbers are saved as a numbers-<date>.json file in a .noxsware\menu-numbers folder next to your resources folder.

  1. Click Read my server. The studio reads the numbers your packs have now.

  2. The numbers from before the change. Pick one source:

    • Numbers you saved earlier: click Use next to a saved file.
    • The changes in History: tick the changes made since your players last saved their outfits. Deletes, imports, moves and renumbers are listed.
    • A copy of the old server…: pick the resources folder of a backup from before the change.
  3. What moved lists every slot whose numbers changed. If nothing moved, the page says Nothing moved and saved outfits are fine.

  4. GTA’s own pieces in these slots. Your menu lists the game’s own pieces first, so the studio needs to know how many there are. Open your clothing menu in game, go to each slot listed, and type the number the first add-on piece shows at. It depends on your server’s game build, and the studio remembers it for next time.

  5. Your players’ saved outfits. Export the outfits table from your database as CSV or JSON, then click Pick the export…:

    • HeidiSQL: right-click the table → Export grid rows.
    • phpMyAdmin: Export → CSV or JSON.
  6. Read the dry run: how many saved outfits were read and how many change, plus any outfit wearing a piece that no longer exists.

  7. Click Save the fix (SQL)….

  8. Back up your database, then run the file once (in HeidiSQL: File → Run SQL file).

Appearance resource Table
illenium-appearance playerskins, and player_outfits for saved wardrobe outfits
qb-clothing playerskins

Export and fix each table the same way, one at a time.

  • It backs up the table first and runs in one transaction.
  • It writes one UPDATE per changed row. Each one only applies if the row is still exactly as you exported it, so outfits players changed in the meantime are left alone.
  • A dry-run report is saved next to the SQL file. It lists every change, the rows that were skipped, and the outfits that wore a piece that no longer exists.

A piece that no longer exists becomes the number you set on the page (0 by default). A hat or other prop is taken off instead.

  • Each piece is recognised by its model file and the sizes of its colours, so it keeps its identity when its file is renamed, renumbered or moved to another pack. Pieces whose files are missing are matched by position only.
  • Advanced shows how the numbers were matched, the skipped rows and the first changes.
  • The GTA counts you type here also give the Clothing catalogue full menu numbers.

Next: Clothing catalogue.