Skip to content

Shop editor ​

Shop editor

The in-game shop editor creates, moves and changes shops without a restart. Open it with /shopadmin (Config.Admin.command) or the np_admin staff tool Open shop editor. It needs the node np_shops.editor (see Installation → Permissions).

The shop list ​

The left side lists every shop with its brand plate, id, distance and origin. Filter by type or search by name.

Origin Meaning
Config From shared/config/shops/*.lua
Editor Made or saved in the editor, stored in the database (np_shops_shops)
API Registered by another resource with RegisterShop. Read-only here

Shops that are switched off show Off, hidden shops Hidden.

Editing a shop ​

Section What you set
Shop Id (lowercase a-z 0-9 _ -), name, tagline, brand, type
Counters One or more counters with a radius. Use my position puts a counter where you stand
Opening hours Always open, or from / to
Robbery, clerk & sale Robbery on or off and its values, the clerk model and position, ownable and price
Items & prices Item, tab, price and stock per line. The quick-add chips offer common items. Up to 200 lines (maxItems)
Pick a brand New shop Database shop
Brands New Database

Change opens the brand picker with all 102 brands, grouped and searchable.

The editor offers every item the shops already sell, the items of Config.Items, and the extra names in Config.Admin.items.

Saving ​

Save shop stores the shop in the database and applies it at once. Players see the change without a restart.

  • Saving a config shop stores an editor copy with the same id. The copy overrides the config shop. Deleting the copy brings the config shop back (editableOrigins).
  • Shops registered by other resources can't be edited here.
  • Switching a shop off closes it (closed reason admin) without deleting it.
  • Every save and delete is logged (editor): in np_shops_log, in np_admin's audit log, and in the np_discord channel when Config.Logs.discord.editor is on.

Staff buttons ​

Button Does
Teleport Moves you to the shop's counter (Config.Admin.teleport)
Restock Fills the stock of every line
Reset robbery Clears the robbery cooldowns and reopens a robbed shop
Delete Deletes an editor shop (config shops: the editor copy). An editor shop linked with an np_fuel station can't be deleted (linked_station)

The same restock and reset are np_admin staff tools: Restock shop (np_shops.stock) and Reset robbery cooldown (np_shops.robbery).