Skip to content

Staff: spacing rules & zones ​

/vendingadmin opens the staff screen (with np_admin: the node vending.admin, see Installation → Permissions). It is the one red-tinted surface of np_vending. Every change applies live, without a restart: it is stored in the database (vend_meta), pushed to every client and lands in the audit log. Opening the screen needs vending.admin; each change needs the node in the table.

Spacing rules

Page Changes need What
Spacing rules vending.admin.rules Minimum distances, same operator toggle, limits and fees, the live preview
Zones vending.admin.zones Zones with their own rules, no-vend zones
World machines vending.admin.machines Every machine (all, players', the city's, broken) with the staff actions
Models & slots vending.admin.rules Spacing overrides per model
Limits & fees vending.admin.rules Machines per player and company, the permit fee, what happens when a rule tightens
Operators – Every player, company and gang that runs machines
Audit log – Staff changes and business actions

Spacing rules ​

One slider per rule, in metres measured in 3D. 0 switches a rule off.

Rule Default Between
Same operator 25 m Two machines of one owner or company
Different operators 60 m Machines of different operators
Same type, different operators 90 m Two machines of one family (two soda machines) from different operators
City-owned world machines 15 m A new machine and a map machine nobody has bought
Shops 40 m A new machine and a shop entrance (Config.Shops, np_shops)

Same gang or company counts as "same operator" (groupCountsAsOwner, on): np_gangs members and employees share the short distance for their group's machines.

Live preview. The map on the right shows the machines of a zone with rings at half the minimum distance: two rings that overlap break a rule. Orange areas are zones with their own rules. The rings follow the sliders before anything is saved. Save and apply live stores the change, Reset returns to the config defaults, Export config.lua copies the rules and zones as a snippet for shared/config/ (see Export).

When a rule gets stricter, existing machines stay. With If a rule tightens = Keep old ones (tighten = 'flag') the preview marks the machines that now break a rule ("1 machine would break the rule · kept"). A machine that is moved later has to pass the new rules.

Limits & fees Models & slots
Limits Models

Zones ​

A zone is a polygon (at least three points) with its own rules. It can override the spacing numbers, cap the number of player machines, set the weekly rent and the foot traffic, and decide who may place there:

Placement Meaning
Allowed Everyone, with the zone's numbers
Staff Off for players: only staff may place (police stations, hospitals)
Off Nobody can place

To draw a zone, walk its corners in game and add each one at your position, or type the points. Saving re-assigns every machine inside it to the zone. Deleting a zone moves its machines to whatever zone they stand in now.

Zones One zone
Zones Zone

The shipped zones are listed in Configuration → Zones.

Machines ​

The World machines page lists every machine with its operator, zone, stock and status, filtered by all, players', the city's or broken ones. Operators lists who runs how many. Staff actions on a machine (vending.admin.machines):

Action Does
Teleport Takes you to the machine
Reset Returns a player machine to the city. A placed machine is listed at the city price, or auctioned on a hot spot
Remove Deletes the machine
Repair Puts a broken machine back in service
Restock Fills every slot to capacity (empty slots get the model's items)
Sell Lists the machine on the market at a price you set
Machines Operators Audit log
Machines Operators Audit

Export ​

Export config.lua (vending.admin) writes the rules and zones as they apply now:

lua
-- np_vending: exported from /vendingadmin on 2026-10-06 12:00 UTC
Config.Spacing = {
  sameOwner = 25.0,
  otherOwner = 60.0,
  -- ...
}
Config.Limits = { ... }
Config.Zones = { ... }

Paste it into shared/config/12_spacing.lua and 13_zones.lua to make the live state the new default.

Export

np_admin ​

np_vending vendors np_admin's lib byte-identical in bridge/np_admin.lua. np_admin stays optional: no dependency, no @np_admin include. When it runs:

  • Permission nodes (category Vending): vending.admin, vending.admin.rules, vending.admin.zones, vending.admin.machines. np_admin decides alone, with groups, wildcards and denies. See np_admin → Permissions.
  • Resource settings → Vending machines: the spacing rules, limits, the permit fee, placement on/off, rent, stamps, jams, the market, crime and world toggles (Configuration → Editable in np_admin). A change there wins over the staff screen's own override of that key. fxmanifest.lua declares the settings file and every config file, so np_admin lists them while np_vending is stopped. See np_admin → Settings.
  • Staff tools in np_admin's quick menu and Ctrl K: Teleport to, Reset owner, Remove, Repair and Restock vending machine, each with a machine id or code (VM-0142). They need vending.admin.machines or vending.admin. See np_admin → Staff tools.
  • Audit log: staff changes and business actions are written to np_admin's log under np_vending. See np_admin → Audit log.
  • Server theme: the NUI follows the theme set in np_admin (brand colour, strength, frosted or Liquid Glass). Machine brands stay tile tints. See np_admin → Theme.

Without np_admin ​

Staff are the players in Config.Admins, the framework's admin groups (Config.AdminGroups) and, while np_discord runs, the holders of Config.AdminDiscordRoles. In the fallback every staff member may use every page and action. There are no ACE permissions and no add_ace lines. See Installation → Permissions.