Configuration ​
The config is split into files in shared/config/. The numbered files hold the core; each feature has its own file:
| File | Holds |
|---|---|
00_core.lua |
Bridges, locale, staff fallback, integrations, rate limit, log retention |
01_slots.lua |
Config.Categories (the slot grid), Config.Defaults (what an empty slot shows), Config.Toggles |
02_labels.lua |
Config.Labels: the 18 lore labels and 2 counterfeits |
03_economy.lua |
Config.Ownership, Prices, Payment, Wardrobe, ItemsMode, Counterfeits |
04_client.lua |
Config.Camera presets, Config.Anims, Config.Poses |
stores.lua |
Config.Store, Config.Stores, see Stores |
wardrobe.lua |
Config.Wardrobes, Config.QuickSwitch, Config.WardrobeSession, see Wardrobe |
factions.lua |
Config.Factions, Config.Outfitters, Config.Lockers, Config.Uniform, see Factions |
catalogue.lua |
Config.Catalogue, Config.ArmsForTop, Config.Brands, Config.Import, Config.Thumbnails, see Catalogue |
The config is shared (client and server), so keep secrets out of it. Staff edits of prices, labels and packs made in the pack manager live in the database, not in these files.
General ​
| Option | Default | Description |
|---|---|---|
Config.Framework |
'auto' |
'esx', 'qbx', 'qb', 'standalone', or auto-detect (es_extended → qbx_core → qb-core → standalone) |
Config.Inventory |
'auto' |
'np' (np_inventory), 'ox', 'qb', 'none', or auto-detect in that order |
Config.Locale |
'en' |
Server and UI language ('en', 'de') |
Config.Debug |
false |
Debug output |
Config.Admins |
{} |
Staff identifiers (license:, discord:, fivem:). Count with and without np_admin |
Config.AdminGroups |
esx = { 'admin', 'superadmin' }, qb = { 'admin', 'god' } |
Framework groups that are staff while np_admin is not running |
Config.AdminDiscordRoles |
{} |
np_discord role ids or names that are staff |
Config.Integrations |
every sibling 'auto' |
'auto' = used while the resource runs, false = always use the fallback. See Integrations |
Config.Rpc |
{ perSecond = 8, burst = 16 } |
Token bucket per player over every NUI request |
Config.Log.keepDays |
90 |
Clothing log entries older than this are pruned |
Slots and defaults ​
Config.Categories = {
{ id = 'glasses', slots = { 'p1' }, icon = 'glasses' },
{ id = 'hats', slots = { 'p0' }, icon = 'hat-cowboy' },
-- jewelry c7, gloves c3, watches p6, bracelets p7, tshirts c8, jackets c11, pants c4, shoes c6,
-- masks c1, accessories p2 + c10, bags c5, vests c9
}
Config.Defaults = { m = { c11 = { id = 'm/c11//15', t = 0 }, … }, f = { … } }
Config.Toggles = { 'p0', 'p1', 'c1', 'c11', 'c8', 'c9', 'c4', 'c6', 'c5', 'c7', 'p2', 'p6', 'p7', 'c3' }
| Option | Description |
|---|---|
Categories |
The slot grid every screen shows: a category id, the GTA slots it covers and a Font Awesome icon. Components are c1 c3 c4 c5 c6 c7 c8 c9 c10 c11, props p0 p1 p2 p6 p7. Face (c0) and hair (c2) are never touched |
Defaults |
What a component shows when nothing is worn there, or the worn piece's pack isn't streamed. Per freemode model, as piece ids. Props have no default: they are removed. Check the numbers on your game build |
Toggles |
Slots the quick toggles can take off and put back |
Ownership, prices and payment ​
Config.Ownership = 'owned'
Config.Prices = {
base = { c1 = 45, c3 = 30, c4 = 55, c5 = 40, c6 = 50, c7 = 35, c8 = 25, c9 = 120, c10 = 20, c11 = 70,
p0 = 25, p1 = 35, p2 = 40, p6 = 80, p7 = 40 },
tier = { budget = 1.0, mid = 1.6, luxury = 6.0, specialist = 1.3, counterfeit = 0.4 },
labelFactor = { luxury = 4.0, designer = 2.2, street = 1.2, sport = 1.1, watches = 5.0, tactical = 1.5, fake = 1.0 },
min = 5, max = 250000,
}
Config.Payment = { fallbackAccounts = { 'bank', 'cash' }, freeWithoutEconomy = true, factionFallback = 'society' }
| Option | Description |
|---|---|
Ownership |
'owned': players wear what they bought, and the wardrobe lists it. 'free': every available piece counts as owned (servers without a clothing economy) |
Prices.base |
Base price per slot |
Prices.tier |
Factor per store tier |
Prices.labelFactor |
Factor per label tier (Config.Labels[].tier). Pieces without a label use 1 |
Prices.min / max |
Every price is clamped to this range and rounded to whole dollars |
Payment.fallbackAccounts |
Framework accounts tried in this order when np_payments is not running |
Payment.freeWithoutEconomy |
Standalone (no framework money): purchases cost nothing |
Payment.factionFallback |
Uniform orders without np_payments: 'society' (ESX esx_addonaccount society_<job>), 'free' or 'refuse' |
A piece's price is: the piece or pack override from the pack manager, else base[slot], then × store tier × label
factor × the store's priceFactor, minus a running sale. See Stores → Prices.
Wardrobe, items and counterfeits ​
Config.Wardrobe = { maxOutfits = 12, shareDays = 7, quickSwitchSeconds = 4 }
Config.ItemsMode = { enabled = false, item = 'clothing_bag' }
Config.Counterfeits = { enabled = true }
| Option | Description |
|---|---|
Wardrobe.maxOutfits |
Saved outfits per character |
Wardrobe.shareDays |
Share codes expire after this many days |
Wardrobe.quickSwitchSeconds |
The change animation of the quick switch and the locker. The server refuses an early apply |
ItemsMode |
Clothes as items: purchases arrive as a shopping bag item |
Counterfeits.enabled |
Off: the swap meet sells nothing and the authenticity check finds nothing |
Labels ​
Config.Labels = {
{ id = 'didier-sachs', label = 'Didier Sachs', tier = 'luxury', logo = 'didier-sachs', mono = true },
{ id = 'blagueurs', label = 'Blagueurs', tier = 'designer', logo = 'blagueurs', plate = 'light' },
{ id = 'poppin', label = 'Poppin', tier = 'fake', logo = 'perseus-fake', mono = true, fakeOf = 'perseus' },
-- …
}
| Field | Description |
|---|---|
id / label |
The label id pieces and stores refer to, and its display name |
tier |
luxury, designer, street, sport, watches, tactical or fake, for Prices.labelFactor and certificate serials |
logo |
File under assets/logos/svg/ |
mono |
Draw the logo white on the dark UI |
plate = 'light' |
The logo sits on a light chip |
fakeOf |
The real label a counterfeit imitates. The swap meet sells only these |
Which piece carries which label is set in the pack manager or by Config.Brands rules, see
Catalogue → Labels.
Camera, animations and poses ​
Config.Camera.presets holds the dressing-room cameras (face, torso, legs, feet, full: height, distance,
fov), Config.Camera.slots picks the preset a slot is looked at with, and rotateStep is the turn per arrow key.
Config.Anims holds the change, toggle and locker animations, Config.Poses the dressing-room poses (idle,
handsup, walk, arms). All of it is cosmetic.
Editable in np_admin ​
While np_admin runs, staff can change part of the config live under Resource settings →
Clothing (shared/np_admin_settings.lua). The config files stay the defaults; np_admin stores only the overrides.
Without np_admin nothing changes.
| Category | Fields |
|---|---|
| General | Language, debug output |
| Ownership | Ownership mode, counterfeit labels |
| Prices | Base price per slot, store tier factors, label factors, lowest and highest price |
| Payment | Accounts without np_payments, free without an economy, faction orders without np_payments |
| Stores | Lines in one cart, luxury client membership threshold, jobs that may check authenticity, opening hours offset |
| Wardrobe | Saved outfits per character, share code expiry, quick change duration, mail share codes (np_phone), import the clothes of new characters, new characters keep pieces up to (startMaxPrice), first-load read attempts (startReads) |
| Uniforms | Time between two publishes, locker change duration, clocking out restores the civilian look |
| Catalogue | Scan automatically, hold scans that hide more than (maxMissingShare) |
| Items | Clothes as items, bag item name |
| Staff | Staff identifiers, staff Discord roles |
| Limits | Requests per second, request burst, clothing log retention |
Every field applies live, except the language (the UI picks it up at its next init) and the two Items fields, which need a restart.