Skip to content

Integrations ​

np_npchandler is required. Every other np_* sibling is optional. np_clothing checks whether a sibling runs when it needs it, and falls back to its own behaviour otherwise. Config.Integrations.<name> = false forces the fallback. At start the console prints one line per sibling: used, fallback, or not started.

Resource What np_clothing does with it Without it
np_admin Permission nodes, live settings, the clothing log in its audit log, staff actions, the server theme Staff from Config.Admins, framework groups and Discord roles; config files only; neutral grey look
np_character Stays the creator, barber and surgeon. np_clothing writes the clothing part of every persisted look back to np_character's record (built on the server), and applies the stored look after np_character's own load Framework names, no write-back; the look is applied after the framework load + 2 s
np_payments Store checkouts open its checkout sheet (cash, cards, company accounts) with the store as the merchant; refunds checked with GetPayment (a failed or partial refund is owed, never paid again from framework money); uniform orders charged to the faction or business account Framework money from Config.Payment.fallbackAccounts; uniform orders per Config.Payment.factionFallback
np_inventory The clothing_bag item for clothes as items, registered at start ox_inventory / qb-inventory bridge, or no bag
np_hud Toasts, the store entrance prompt with the store logo and opening hours, progress bars np_clothing's own toasts, prompts and progress
np_menu Its Clothing tile (F1 menu and radial) opens the quick toggles; np_clothing adds no radial item of its own. np_menu's Config.DeferClothingTo = 'np_clothing' hands clothing over /clothes command and key binding; context options through ox_target / qb-target
np_phone Receipts in the phone's transactions, share codes by mail, going on and off duty from the phone's jobs app Toasts only
np_tattoos Ink is re-applied after every outfit change Nothing to do
np_gangs While the gang bandana is on, the mask slot (c1) is locked to np_gangs No lock
np_identification Reads the npcMasked state bag / isMasked export: a mask hides the face for ID checks —
np_prison Uses storeOutfit / restoreOutfit / applyOutfit for the prison uniform —
np_discord Staff by Discord role (Config.AdminDiscordRoles) Nobody is staff by role

np_npchandler ​

np_npchandler is a hard dependency (in the manifest's dependencies, start it before np_clothing). It has no Config.Integrations toggle.

  • Store clerks: one local NPC (registerNpc, id np_clothing:clerk:<store>…) per location with a clerk spot, model clerkModel (default mp_m_shopkeep_01), scenario WORLD_HUMAN_STAND_IMPATIENT. A clerk is decoration: when np_npchandler refuses one, the store works without it (one console warning). The clerks are registered again on np_npchandler:ready after it restarts.
  • Catalogue scan: the hidden, frozen peds the scan walks are local peds from createLocalPed (no collision, never networked), removed when the scan ends.

np_admin ​

  • Permissions: the nodes in Installation → Permissions. No ACE.

  • Settings: Resource settings → Clothing. np_admin lists them even while np_clothing is stopped.

  • Log: purchases, refunds, uniform publishes, pack edits, imports and staff actions go to clothing_log and to np_admin's audit log (category np_clothing). Entries older than Config.Log.keepDays are pruned.

  • Staff actions (quick menu and palette):

    Action Node
    Give clothing piece np_clothing.give
    Reset clothing to defaults np_clothing.give
    Rescan clothing catalogue np_clothing.packs
    Clothing pack manager np_clothing.packs
    Force uniform np_clothing.uniform
  • Theme: the UI follows the server theme set in np_admin (brand colour, strength, frosted or Liquid Glass). There is no local override. Without np_admin it reads the replicated convars np_theme_brand, np_theme_strength and np_theme_material (setr), else it stays neutral grey. Store, label and faction colours are not the theme and stay inside their logos.

np_character ​

np_character keeps the parts of the character that aren't clothing. np_clothing owns what the character wears:

  • every persisted look (store, wardrobe, locker, export) is written back through np_character's saveAppearance (clothing step only), so its select screen and a start without np_clothing show the same look. The appearance is built on the server from the saved outfit, never from what a client reports. It skips np_character's job blacklist only when the look is exactly the published uniform set the player is allowed to wear: the uniform designers are trusted for every member who wears their set (see Factions). The civilian look a locker puts back is never trusted;
  • when np_character dresses the ped from its own record (character load, closing one of its stores), np_clothing puts its own look back on;
  • np_character skins can be imported.

Other resources ​

Housing, jail, job and event resources use the exports: openWardrobe for a property's closet, storeOutfit / restoreOutfit for a temporary outfit, applyOutfit to dress a player, givePiece to hand out a piece, and the hooks to veto purchases or look changes.