Skip to content

Owning machines ​

There are two ways to get a machine: buy one that already stands in the world, or place your own. Either way the machine belongs to an operator:

Operator key Who Owner role
p:<identifier> One player That player
job:<name> A company: a job listed in Config.Business.jobs (or every job with anyJob) Grade ownerGrade and above. Other employees get memberPerms (restock)
gang:<id> An np_gangs gang (Config.Business.gangs) The OG and trusted (gangOwnerRanks). Other members get gangMemberPerms (restock, collect)
city Map machines nobody has bought –

A player who acts for several operators (themselves, their company, their gang) picks one in the dashboard, in placement mode and when buying. Limits: Config.Limits.perPlayer (10) machines per player and perCompany (25) per company or gang.

Buy a city machine ​

Every vending prop on the map is a city-owned machine. It is registered the first time somebody walks up to it, stocked by the city (Config.World.cityStocked, refilled every hour) and, with Config.World.purchasable, for sale.

  1. Walk up to it. The peek card shows the price, the weekly spot rent, the foot traffic and the average sales of the last seven days.
  2. Press H (or E on the peek card), then again to confirm.
City price Config.World.price[model] × priceByTraffic (0.8 / 1.0 / 1.25 for traffic 1 / 2 / 3)
Sprunk / eCola $18,500 at traffic 2
Candybox $15,500
Bean Machine coffee $21,000
Water cooler $4,500
Redwood cigarettes $14,000 (the buyer needs a business_license)
Gumball $2,400

The purchase is checked like a placement against rivals: the machine may not end up too close to another operator's machine (otherOwner, sameTypeOther), and your limit applies. The stock comes with it. The first spot rent is due one rent period later. City machines stay where they are: they can't be picked up and moved.

Machines other players list for sale are bought the same way at the machine, or from anywhere through the market.

Deeds ​

Buying or placing a machine gives you a vending_deed (inventories with metadata). Ownership is an item:

  • Use a valid deed to register the machine to your own name. That is how machines are traded, used as collateral or seized.
  • Every new owner gets a new serial, so older deeds are void.
  • When a machine returns to the city, the deed is void as well.

Service door ​

H at your machine opens the service door. Owners, key holders and players with a taken restock job (for its stops) may open it (a job taker can only fill slots). What you can do depends on your rights: restock, collect, price, or owner (all).

Service door

Tab What
Slot Set the item of a slot (from the model's items), Fill from the stock you carry, Unload back into your pockets, the price (within the item's floor and ceiling), an offer with an end time, and locks: minimum age, needs ID, licence, only for a job. Only the owner can turn any slot into a capsule slot: fill it with a mix of items, buyers get one at random. Turning it off works once a single kind is left
Machine Name, pay methods (cash / card / phone), in service on/off, cash box, card sales not yet paid out
Upgrades Reinforced lock, alarm, camera, insurance (see Crime) and the repair of a broken machine
Sell List the machine on the market, or pick it up
Log Sales, refills, collections, jams and refunds, break-ins
Slot editor Machine Upgrades
Slot Machine Upgrades
Sell Log Opened with a key
Sell Log Key
A broken machine An empty machine
Broken Empty

Stock always comes from your inventory: buy it at the wholesale depot and carry it to the machine. Prices can also be changed from the dashboard and the phone; filling and collecting happen at the machine. When a sold-out slot is filled, everybody who pressed Notify me gets a message.

Cash box ​

  • Cash sales stay in the machine's cash box until somebody with collect rights empties it at the service door. A full box (cashMax of the model, e.g. $1,500) stops cash sales; the owner gets an alert from 80 %.
  • Card and phone sales are paid to the operator every hour (Config.Economy.cardSettleMinutes):
Operator Where the money goes
Player Their bank. When they are offline it is held and paid at the next login
Company, account = 'society' The job's society account (esx_addonaccount, qb-management / qb-banking / Renewed-Banking)
Company, account = 'internal' np_vending's own company balance. Owners withdraw it to their bank on the dashboard
Gang np_vending's own gang balance

Expenses (rent, upgrades, repairs, bids) are paid from the player's bank for player machines, and from the company or gang balance for the others.

Keys and staff ​

On the dashboard (Staff & keys) an owner gives a key to a player for one machine or for all machines of the operator, with any of three rights:

Right Allows
Restock Open the service door, fill and unload slots
Collect Empty the cash box
Price Change prices and offers

The key holder also gets a vending_key item (Config.Keys.giveItem). With Config.Keys.requireItem a key only works while its holder carries that item. An operator can have up to Config.Keys.max (30) keys. Keys of a machine are revoked when it changes hands.

Staff & keys

Pick up and move ​

At the service door (Sell → Pick up) the owner packs the machine back into a vending_crate. The stock goes into the pockets (nothing happens when it doesn't fit), the cash box is paid out in cash, pending card sales go to the operator. The crate places the machine again elsewhere, checked like any placement; the permit fee is due again.

With an inventory without metadata there is no crate: Config.Placement.pickupRefund (60 %) of the machine price is paid back instead. Listed machines must be unlisted first. City machines can't be picked up.