Skip to content

np_clothing v0.1.0 ​

A clothing system for FiveM, built on the Nimbus UI design system, the same look as np_hud, np_phone, np_shops and np_character: glossy grey squircle tiles, frosted glass lit from above, Quicksand type, and colour only where it means something. A store's colour stays inside its logo.

Players shop in the GTA-lore clothing stores, try pieces on their own ped, keep outfits in a wardrobe and share them with codes. Factions design their uniforms at Universal Uniform and change into them at station lockers. Under all of it sits a catalogue that stores every piece by pack and name instead of by number, so GTA updates and new clothing packs never swap a saved jacket for another one. It runs on es_extended, qbx_core, qb-core or standalone, with np_inventory, ox_inventory or qb-inventory. The server owns prices, stock, ownership, uniform rules and duty.

Binco

Ponsonbys (luxury) Swap meet (counterfeits)
Ponsonbys Swap meet
Wardrobe Universal Uniform
Wardrobe Universal Uniform
Faction locker Pack manager
Locker Pack manager
Dressing room Lore directory
Dressing room Lore directory

At a glance ​

  • Lore stores: 15 GTA clothing stores with their real logos. Binco, Discount Store, Sub Urban, Ponsonbys and Vespucci Movie Masks use the vanilla interiors; the other ten ship disabled with an example spot for an MLO, kiosk or beach stand. Plus a swap-meet vendor for counterfeits. See Stores.
  • Fashion labels: 18 lore labels (Perseus, Sessanta Nove, Didier Sachs, Le Chien, Bigness, Broker …) and two knock-offs (Poppin, Le Crew) as logos on cards, filter chips, the inspector and receipts. Store tier and label tier set the price.
  • Shopping: a slot grid with stock counts, label filters, try-on on your own ped (taken off again if you leave without paying), colourways, a cart, Buy & wear or Buy to wardrobe. A dressing room with camera presets, A/B compare, poses and lighting.
  • Luxury and fakes: certificate serials, monogram embroidery, financing, a client discount and a stylist at Ponsonbys. Counterfeits are cheap, carry no certificate, and police or luxury staff can spot them with /checkfit.
  • Wardrobe and outfits: owned pieces per slot, up to 12 named outfits, F1–F4 hotkeys and a quick change anywhere, share codes (NPC-7K3Q-M9XD), and quick toggles (hat, glasses, mask …). See Wardrobe & outfits.
  • Factions: 13 lore factions (LSPD, LSSD, SAHP, N.O.O.S.E., FIB, LSFD, Merryweather, Gruppe Sechs, Weazel News, Downtown Cab Co., Bugstars, GoPostal, Lifeinvader). Leaders design uniform sets at Universal Uniform with a rule per slot, issue them by rank and certification, and publish them to the lockers. See Factions & Universal Uniform.
  • Update-proof clothing IDs: a piece is stored as pack + number inside the pack and resolved at runtime. A missing pack hides pieces instead of deleting them. Real GTA names come from the game's shop data. Old skins from illenium-appearance, qb-clothing, esx skinchanger and np_character can be imported. See Catalogue & packs.
  • Pack manager (staff): new, missing and moved packs per game build, price overrides, labels, faction-only (EUP) packs and timed releases.
  • Clothes as items (optional): purchases arrive as a shopping bag item; using it adds the pieces to the wardrobe.
  • Integrations: np_admin, np_character, np_payments, np_inventory, np_hud, np_menu, np_phone, np_tattoos, np_gangs, np_identification and more, each optional with a built-in fallback. See Integrations.
  • np_admin (optional): permission nodes, settings editable live, logs and staff actions. The UI follows the server theme. No ACE.
  • Requires oxmysql and np_npchandler (started first; store clerks and the catalogue scan peds). Frameworks: esx / qbx / qb, auto-detected, or standalone.

Quick example ​

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

-- server: a jail resource keeps the civilian look and restores it on release
exports.np_clothing:storeOutfit(src, 'prison')
-- …
exports.np_clothing:restoreOutfit(src, 'prison')

-- server: veto purchases at a store while a heist is running
exports.np_clothing:registerHook('beforePurchase', function(data)
  if data.store == 'ponsonbys' and GlobalState.heistActive then return false, 'store_locked_down' end
end)

-- server: a checkout went through
AddEventHandler('np_clothing:purchased', function(src, receipt)
  print(src, receipt.store, receipt.total, #receipt.pieces)
end)

Next steps ​