Player terminal ​
Employees of a terminal business run a register: they put products on a ticket and charge a player standing in front of them. The customer gets the normal checkout sheet with the real business name, so a player can't pose as a shop.

Open the register ​
/terminal(Config.Terminal.command), or- the np_menu context option Charge (terminal) on a player. That player is then preselected.
Only players whose job has a terminal business can open it, at or above its minGrade, and on duty when onDuty is
set (the default). The server tells the client which register it may open on load and on every job change.
The register ​
| Part | Shows |
|---|---|
| Product grid | The business catalogue. Click adds one, right-click removes one, the badge shows the count |
| Custom | A free amount (when custom isn't false) |
| Ticket | Item count, total, where the money goes and the cashier's commission ("goes to Burger Shot · 8 % to you") |
| Charge who? | Players within 3 m (Config.Terminal.distance), refreshed every 2 s. Phone contacts show by name, strangers as #42 |
| Hold button | Hold to send $28 to #42 |
Keys: ← → / ↑ ↓ pick the customer, E (hold) sends, ESC closes.
What the customer sees ​

A compact sheet: "Burger Shot asks you to pay", from the cashier in front of you, the line items, the default account
and a 30 s timer (Config.Terminal.requestTimeout). E (hold) pays, N or ESC declines, TAB opens the
full sheet to pick another account, split or tip.
The cashier gets a toast with the result: "Customer paid $32 · PX-20512" or "Not paid: Request expired".
Where the money goes ​
| Part | Goes to |
|---|---|
| Amount minus commission | The business payee, by default the job's society account |
| Commission | floor(amount × commission %) into the cashier's bank |
| Tip | The cashier |
Commission and tips go to the cashier's character, not to a server id. If the cashier left, np_payments pays the
character through the banking provider (np_banking: CreditCitizen into their checking account); without one, the money stays with the business.
A refund takes the full amount back from the business. The cashier keeps the commission and tips are never refunded.
Checks ​
The server builds the request itself. The client only sends the customer, item ids, quantities and the custom amount.
- The cashier's job, grade and duty are checked again on every send.
- The customer must be within
Config.Terminal.distanceand not in another checkout (target_busy). - Prices and labels come from the server catalogue.
- One request per cashier and customer every 5 s (
Config.Terminal.cooldown), plus the RPC rate limit.
Businesses ​
Config.Terminal.businesses = {
burgershot = {
label = 'Burger Shot', sub = 'Vespucci', icon = 'burger', tint = 'red',
category = 'food',
commission = 8, -- % of the amount to the cashier (0..50)
onDuty = true, -- only on duty (default true)
minGrade = 0, -- lowest grade that may use the register
custom = true, -- allow a custom amount (default true)
payee = nil, -- default { type = 'society', id = 'burgershot' }
catalogue = {
{ id = 'bleeder', label = 'Bleeder', price = 9, icon = 'burger', tint = 'red' },
{ id = 'fries', label = 'Fries', price = 4, icon = 'bowl-food', tint = 'orange' },
{ id = 'ecola', label = 'eCola', price = 3, icon = 'glass-water', tint = 'aqua' },
},
},
}
| Field | Description |
|---|---|
label, sub, icon, tint |
Merchant shown to the customer and on the register |
category |
Request category (default service). Faction and business rules use it |
commission |
Cashier's share in %, clamped to 0..50 |
onDuty |
Require duty (default true) |
minGrade |
Lowest job grade allowed |
custom |
Allow the custom amount (default true) |
payee |
Who gets the money. Default: the job's society account |
catalogue |
{ id, label, price, icon?, tint? }. Items with a price of 0 or less are dropped |
Every terminal business is also a business account its members can spend from.
From another resource ​
-- server: add or replace a terminal business at runtime
exports.np_payments:RegisterTerminal('burgershot', {
label = 'Burger Shot', icon = 'burger', tint = 'red', category = 'food', commission = 8,
catalogue = { { id = 'bleeder', label = 'Bleeder', price = 9 } },
})
RegisterTerminal(job, def) returns true and re-syncs every online player's register access.