All products

np_clothing

Clothing for FiveM with every GTA lore store and fashion label, each with its real logo. Try on, pay at the cart, save outfits and share them with a code. Faction leaders design uniforms at Universal Uniform, members change at the station lockers, and saved outfits survive GTA updates and new packs.

v0.1.0ESX · qbx · qb · standaloneoxmysqlRequires np_npchandler
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler
Database
12 tables, created at start
Stores
15 lore stores and a swap meet
Labels
18 fashion labels, 2 counterfeits
Factions
13 lore factions with lockers
Languages
English, German
Look
Nimbus UI, frosted or Liquid Glass
Binco in Strawberry: the slot grid with stock counts, label filter chips, before and after while trying on a Bigness jersey, the piece strip, colourways and a cart paid by Fleeca card with Buy & wear
Binco in Strawberry: the slot grid with stock counts, label filter chips, before and after while trying on a Bigness jersey, the piece strip, colourways and a cart paid by Fleeca card with Buy & wear

Taken from the NUI in the browser at 1920×1080, with mock data. Flows and the lore directory are concept renders.

What's in it

The server owns everything that matters: prices, ownership, try-ons, uniform rules, slot locks and the catalogue.

Lore stores

  • Binco, Discount Store, Sub Urban, Ponsonbys and Vespucci Movie Masks in their vanilla interiors, ten more lore stores ready for MLOs and kiosks.
  • Tiers: budget, mid, luxury and specialist set the price, with label factors on top.
  • A slot grid with stock counts, label filter chips, hide owned, sort by price and search.
  • Every piece has its real GTA name from the game's shop data, such as "Gray Broker Sweater".

Try-on and checkout

  • Try-on: the piece goes on your ped and comes off again if you leave without paying. The server checks it.
  • Dressing room: face, torso, legs, feet and full cameras, A/B compare with the look you came in with, poses and lighting.
  • Colourways, a cart, then Buy & wear or buy straight into the wardrobe.
  • Pays through the np_payments checkout when it runs, otherwise cash or bank.

Labels and luxury

  • 18 lore fashion labels with their real logos: Perseus, Didier Sachs, Le Chien, Güffy, Bigness, Pendulus and more.
  • Ponsonbys: certificate serials, monogram embroidery, Maze Bank-style financing, a client discount and a stylist to call.
  • Counterfeits: Poppin and Le Crew knock-offs at a Swap Meet stall, cheap and without a certificate, tracked per colourway.
  • Police and luxury store staff check outfits for fakes with /checkfit.

Wardrobe and outfits

  • Wardrobes in the vanilla homes and apartments, or in any housing script through openWardrobe.
  • Up to 12 outfits per character. Four go on hotkeys, so you can change anywhere with a short animation.
  • Share codes like NPC-7K3Q-M9XD, valid for 7 days. Missing pieces show the store that sells them.
  • Quick toggles: /clothes hat, glasses, mask … and /clothes restore, also from np_menu's Clothing entry.

Universal Uniform

  • Faction leaders design uniform sets at Universal Uniform in Del Perro and Hawick, with a male and a female variant and a version.
  • A rule for every slot: fixed, choice of N, optional, auto (rank insignia, armour on duty) or forbidden.
  • Sets are issued by rank and certification. Publishing charges a cost per member to the faction account and refits every locker.
  • 13 lore factions: LSPD, LSSD, SAHP, N.O.O.S.E., FIB, LSFD, Merryweather, Gruppe Sechs, Weazel News and more.

Update-proof catalogue

  • Pieces are saved as pack + number in the pack + texture, never as a global drawable number.
  • GTA updates and new addon packs can't shift saved outfits. A missing pack hides its pieces until it's back.
  • Pack manager: new, missing and moved packs, price overrides, fashion labels, faction-only EUP packs, timed releases.
  • Imports skins from illenium-appearance, qb-clothing, ESX skinchanger and np_character.

A closer look

Every lore clothing store

Five stores have a vanilla interior and are on from the start. The other ten ship switched off: place them in your MLOs, malls or beach kiosks and turn them on.

Binco logo
Bincobudget
Discount Store logo
Discount Storebudget
Sub Urban logo
Sub Urbanmid
Ponsonbys logo
Ponsonbysluxury
Vespucci Movie Masks logo
Vespucci Movie Masksmasks
KindStores and labels
Vanilla interiorsBinco, Discount Store, Sub Urban, Ponsonbys, Vespucci Movie Masks
For MLOs and kiosksCrazee Fashion, Fashion Star, Get Shirty, J's T-Shirts, Shore Feet Shoes, Sports Gear, Tidemarks, Vespucci Sunglasses, Vespucci Surfing, Bikini Universe
CounterfeitsA Swap Meet stall that sells Poppin (fake Perseus) and Le Crew (fake Le Chien)
Fashion labelsDidier Sachs, Sessanta Nove, Perseus, Santo Capra, Le Chien, Enema, Güffy, Blagueurs, Pendulus, Bigness, Squash, Manor, Broker, Sweatbox, Trickster, Prolaps, Heat, Vom Feuer
Your ownStores in the config, or registerStore at runtime. The same brand-pack format as np_shops

Designed by the leader, worn by the members

Leaders build a set at Universal Uniform and publish it. Members clock in at the station locker and change. Their own look stays in the locker and comes back when they clock out.

Slot ruleWhat the member gets
FixedExactly this piece, such as the service shirt
Choice of NPicks one of the approved pieces, such as three pairs of shoes
OptionalCan wear it or not, such as the patrol cap
AutoFilled in for them: rank insignia from their rank, armour only while on duty
ForbiddenThe slot stays empty, such as masks
StepHow it works
DesignA male and a female variant per set, with a version. Only pieces the faction may issue, including faction-only EUP packs
IssuePer rank and per certification, for example Motor, SWAT or K-9
PublishThe cost per member is charged to the faction account, and every member's locker is refitted
WearUniform slots are locked while it is on, so a member can't swap the shirt for a hoodie

Clothes are saved by name, not by number

Most clothing scripts save "component 11 = drawable 287". When an update or a new pack inserts drawables before 287, every saved outfit after it shows the wrong piece. np_clothing saves where the piece comes from.

-- one piece of an outfit: sex / slot / pack (collection) / number in the pack
m/c11/mp_m_freemode_01_mp_m_lowrider_01/3   -- texture 2, "Gray Broker Sweater"

-- applied in game, every time an outfit is put on
GetPedDrawableGlobalIndexFromCollection(ped, 11, pack, 3)  --> 291 today
SetPedComponentVariation(ped, 11, 291, 2, 0)
CaseWhat happens
GTA updateThe global number is looked up again, the outfit stays the same
New addon packFound by the catalogue scan and listed as new in the pack manager
Missing packIts pieces are hidden, not deleted, and come back with the pack
Old skinsGlobal numbers are translated through a snapshot of the game build. Ambiguous ones go to a staff review queue

Set it up

Compatibility

oxmysql and np_npchandler are the hard dependencies. Frameworks, inventories and every other np_* resource are detected when it starts.

KindSupported
Frameworkes_extended first, qbx_core, qb-core, or standalone
Inventorynp_inventory first, ox_inventory, qb-inventory, or none. Needed only for clothes as items (a clothing_bag item)
PaymentsThe np_payments checkout and faction accounts while it runs, otherwise framework cash and bank, and the ESX society account for factions
Appearancenp_character stays the creator, barber and surgeon, and np_clothing writes the clothing back to it
Legacy skinsImport from illenium-appearance, qb-clothing, ESX skinchanger and np_character
ThumbnailsRendered in game with screenshot-basic (optional). Without it, the slot icon shows
PedsFreemode peds (mp_m_freemode_01 / mp_f_freemode_01)
StandaloneWith ESX / qbx / qb
Stores, wardrobe, share codes✓✓
Paid clothes– free, no economy✓ cash or bank
Faction uniforms and lockers– needs jobs✓ from the job and grade
Staffnp_admin nodes, Config.Admins or Discord roles✓ plus the framework's admin groups
Character idThe licence✓

Installation

Build the NUI once (web/dist); the tables are created at start. Staff scan the catalogue once in game.

  1. Put the resource in resources/ as np_clothing. Keep the name, the NUI and the logos use it.
  2. Build the NUI once: cd web && npm ci && npm run build (web/dist is not committed).
  3. Start it after oxmysql, the framework and the inventory:
    ensure oxmysql
    ensure es_extended     # or qbx_core / qb-core (optional)
    ensure np_inventory    # optional, for clothes as items
    ensure np_admin        # optional
    ensure np_character    # optional
    ensure np_npchandler   # required
    ensure np_clothing
  4. Database: the 12 tables are created at every start. sql/install.sql has the same schema if you want to import it yourself.
  5. Grant the np_clothing.* nodes to your staff in np_admin (no add_ace lines). Without np_admin, add their identifiers to Config.Admins.
  6. Join as staff: the first staff member with np_clothing.packs scans the catalogue. /clothing scan runs it again, /clothing packs opens the pack manager.
  7. Coming from another clothing script? Run the legacy import from the pack manager, as a dry run first.
  8. Set stores, prices, wardrobes, factions and lockers in shared/config/. Limits like outfits and share code days can be changed live in np_admin.

Commands and permissions

Staff rights are np_admin permission nodes. np_clothing.admin includes all of them.

Command or nodeWhoWhat
/clothes [hat|glasses|mask|…|restore]EveryoneQuick toggles, or put everything back on
/outfit 1-4EveryoneChange into an outfit on a hotkey anywhere. The four hotkeys can be bound in FiveM's key bindings
/checkfitPolice jobs and luxury store staff on dutyAuthenticity check of the nearest player's outfit
/clothing scan|packs|thumbsnp_clothing.packsCatalogue scan, the pack manager and thumbnail rendering
np_clothing.importStaffLegacy import and its review queue
np_clothing.uniformStaffEdit and publish any faction's uniform sets
np_clothing.giveStaffGive or remove pieces and reset a look, also from np_admin's player actions

For your own scripts

Server exports to dress players, give pieces, open stores, wardrobes and lockers, hooks that can veto a purchase or a change, and events for every one.

-- your housing script opens the closet of a property
exports.np_clothing:openWardrobe(src, { id = 'house_42', label = 'Walk-in closet', capacity = 120 })

-- your jail keeps the street look and dresses the inmate
exports.np_clothing:storeOutfit(src, 'prison')
-- ... and puts it back on at release
exports.np_clothing:restoreOutfit(src, 'prison')

-- no masks in the bank lobby
exports.np_clothing:registerHook('beforeApply', function(data)
  if data.outfit.c1 and inBank(data.source) then return false, 'no_masks_here' end
end)

Questions

Do saved outfits break when GTA updates?

No. np_clothing saves the pack and the number inside the pack, and looks up the global drawable number in game every time an outfit is put on. Updates and new addon packs can't shift it. If a pack is missing, its pieces are hidden until the pack is back, never deleted.

Can I keep my players' current clothes?

Yes. The legacy import in the pack manager reads illenium-appearance, qb-clothing, ESX skinchanger and np_character skins and translates their global numbers through a snapshot of the game build. Ambiguous pieces go to a review queue where staff pick the right one. New characters keep the cheap pieces they start in: with OneSync the server reads the ped on their first load and grants base-game pieces up to a price you set.

Does it replace my character creator?

No. np_character stays the creator, barber and surgeon. np_clothing takes over the clothing and writes it back to np_character, so both stay in step.

Do I need a framework?

No. Standalone runs the stores, the wardrobe and share codes, but has no economy, so clothes are free, and no jobs, so faction uniforms need ESX, qbx or qb.

Can players carry clothes as items?

Yes, as an option. Purchases then arrive as a clothing_bag item in np_inventory, ox_inventory or qb-inventory, and using the bag adds the pieces to the wardrobe.

Can I add EUP or other addon packs?

Yes. The catalogue scan finds new packs, and in the pack manager you set their price, fashion label, a release time, or make them faction-only so only that faction's uniform sets can use them. A scan that would hide too many packs waits for staff to confirm it.

Which languages are included?

English and German, set with Config.Locale.

Works well with

Open the store doors.

Installation, stores, factions, configuration and every export are in the docs.

Install np_clothing