Skip to content

Clothing IDs & Outfit Shifts ​

Quick answer ​

Saved outfits break because global drawable indexes moved — a new pack, a changed ensure order, or a Rockstar DLC pushed everything along. The clothes are fine; the numbers your scripts stored are pointing somewhere else.

Difficulty: Intermediate · Affects: both · Collection natives CONFIRMED

INFO

Search: ids changed, outfits broken, wrong clothes, drawable id, shifted, saved outfit.

Why it happens ​

Custom collections are placed after vanilla and DLC content. That means:

  • A new Rockstar DLC inserts items before yours, shifting your global indexes.
  • Adding or removing a clothing resource shifts everything after it.
  • Changing ensure order rearranges the collections.
  • Repacking rebuilds collections entirely.

Collection-local IDs stay stable through all of this. Global IDs do not.

The durable fix ​

Store outfits by collection name plus local index, not by global index. FiveM exposes natives for exactly this:

SetPedCollectionComponentVariation
GetPedDrawableVariationCollectionName
GetPedDrawableVariationCollectionLocalIndex

A framework that saves ("zaiders_streetwear", 12) survives DLC updates, pack additions and load-order changes. A framework that saves 487 does not.

This is a script change, so it needs your framework developer. It is the only approach that stops the problem recurring.

The operational fix ​

If you cannot change the framework:

  1. Lock ensure order for clothing resources and never reorder it.
  2. Treat adding or removing a clothing pack as a scheduled event, not a routine one.
  3. Reserve drawable headroom at build time so future additions append rather than insert. Build tooling supports reserving slots per component for this purpose — it costs capacity up front and buys stability later.
  4. Announce a wardrobe reset when a shift is unavoidable.

What this is not ​

WARNING

ensure order is not a crash fix. Reordering resources does not change how many YMT slots they consume. If your server crashes, the cause is capacity or a broken file, and reordering will only change which wrong clothes appear.

Support for Zaiders Store FiveM clothing packs and scripts.