Stores ​
The creator also runs in store mode for a character that is already playing: a barber, a clothing store, a plastic surgeon, or any subset of the appearance steps you define. The player stays where they are, the camera frames them, and the same panels, tools and keyboard controls as in the creator are used. The summary step is replaced by a total and a Pay / Confirm button.

np_character has no store locations or blips of its own. Your shop resource (a marker, a target zone, an np_menu entry) opens the store from the client or the server.
Kinds and pricing ​
Config.Store = {
barber = { steps = { 'hair' }, price = 150 },
clothing = { steps = { 'clothing' }, price = 250 },
surgeon = { steps = { 'heritage', 'face', 'hair' }, price = 5000 },
account = 'bank',
}
- The price is flat per visit, from
Config.Store[kind].price, and taken fromConfig.Store.account('bank'or'cash'). - The server charges only when something changed. Closing with the same look is free.
- If the player can't pay, the store stays open with an error; nothing is saved.
- With np_payments running, the fee is paid in its checkout sheet. See np_payments checkout.
- Add your own kinds with any subset of
heritage,face,hairandclothing. The store title is the locale keystore_<kind>(Barber,Clothing store,Plastic surgeonbuilt in).
Only the fields of the store's steps are saved; everything else stays as it was:
| Step | Fields saved |
|---|---|
heritage |
Head blend, and the ageing, sun damage, complexion, blemishes, moles / freckles and body blemishes overlays |
face |
All face features |
hair |
Hair, eye colour, and the beard, eyebrows, makeup, blush, lipstick and chest hair overlays |
clothing |
Components and props |
The model can't change in store mode (no gender or ped switch). The result is sanitised with the player's job
unlocks, saved to np_character_meta and written through to the framework skin store.
np_payments checkout ​
With np_payments running and Config.Payments = 'auto' (the default), Pay opens the np_payments
checkout sheet on top of the store. The player can pay from cash or any account they may use.
| Kind | Merchant | Category |
|---|---|---|
barber |
np_character:barber (scissors, orange) |
service |
clothing |
np_character:clothing (shirt, blue) |
shop |
surgeon |
np_character:surgeon (doctor, red) |
medical |
- One line with the store price.
Config.Store.accountpreselects the method. The money leaves the player (no payee). - Cancelling the sheet, or letting it expire, shows "Payment cancelled." and the store stays open. A failed payment shows the not-enough-money error and the store stays open too. Nothing is saved until the payment went through.
- Rename fees (
Config.Rename) go through np_payments'Chargeexport without a sheet.
Config.Payments |
Behaviour |
|---|---|
'auto' |
np_payments while it runs, else the framework bridge. An error from np_payments also falls back |
true |
Always np_payments. Fees fail while it isn't running |
false |
Never np_payments |
Open from the client ​
exports.np_character:openCreator({
kind = 'barber', -- a Config.Store key: its steps and price
onDone = function(ok, appearance)
if ok then print('new look saved') else print('cancelled or refused') end
end,
})
| Option | Description |
|---|---|
kind |
A Config.Store key. The server takes steps and price from that entry |
steps |
Without kind: a free store limited to these appearance steps (heritage, face, hair, clothing), e.g. for a wardrobe in a house |
title |
Header title. Defaults to the store name for a kind |
onDone(ok, appearance) |
Called when the store closes. ok = false when cancelled or refused; appearance is the saved or restored look |
openCreator returns true when the request was sent, or false, 'not_loaded' | 'busy'. The server decides steps and
price; when it refuses, an error toast is shown and onDone(false) is called.
-- free wardrobe: clothing only, no charge
exports.np_character:openCreator({ steps = { 'clothing' }, title = 'Wardrobe' })
Open from the server ​
-- e.g. after your own server-side distance or job check
exports.np_character:openStore(source, 'surgeon')
Returns false when the kind is unknown or the player is not playing a character. The server opens its store session
first and pushes the current appearance to the client.
When the store closes ​
| Result | What happens |
|---|---|
| Pay / Confirm | The server merges the store's fields, charges (only if changed), saves, and answers the final appearance. Toast "Paid $…" or "Nothing changed, nothing charged." |
Cancel (Esc) |
The server closes its store session and answers the saved appearance, which is put back on the ped |
Both fire the local client event np_character:storeClosed (kind, ok, appearance) and the onDone callback. kind
is 'custom' for a store opened with steps. Every paid visit is logged (store).
Other shops ​
On the client, exports.np_character:getAppearance(ped?) reads a ped in the illenium-appearance format and
exports.np_character:setAppearance(ped, appearance) applies one. These only touch the ped; they don't save anything.
Because np_character writes through to playerskins (qb / qbx) and users.skin (ESX) in the illenium-appearance
format, shops that read those tables see the current look. Note the other direction: np_character reads its own
np_character_meta row first and only falls back to those tables when the row has no appearance, so a look that
another shop saves only to playerskins / users.skin is not what np_character applies on the next spawn. Prefer
np_character's store mode for appearance changes. See Bridges.