Admin Commands
Admin commands and tooling for managing Oxide Vending businesses, machines, and progression.
All commands are permission-gated through olink.framework.IsAdmin(source). The exact admin source is whatever your o-link configuration exposes for the active framework.
Business Commands
/vendingbusiness <citizenid>
Shows a business summary for the specified owner identifier.
Output includes:
- Business ID
- Business name
- Owner citizen ID
- Business level
- Machine count and cap
- Total revenue
- Uncollected revenue
- Total items sold
/vendingcreatebusiness <citizenid> <name>
Creates a business directly for a player identifier and bypasses the normal registration payment flow.
/vendingdeletebusiness <businessId>
Deletes a business and its related vending data.
This removes:
- Placed machines
- Stock
- Revenue rows
- Employee rows
- Progression rows
- Milestone rows
- Warehouse rows
- Pickup rows linked through normal cleanup paths
Machine Commands
/vendinglist [type]
Lists placed machines. Optional type filters to a configured machine type.
Per-machine output includes:
- Machine ID
- Machine type
- Business ID and name
- Coordinates
- Cash balance
- Status
Works from in-game and server console.
/vendingdelete <machineId>
Force-deletes a placed machine without refunding it or returning it to unplaced inventory.
/vendingsetstock <machineId> <item> <quantity>
Directly inserts or updates stock on a machine after validating the item through o-link.inventory.GetItemInfo(...).
/vendinggivemachine <playerId> <type>
Gives a player an unplaced machine by inserting into vending_owned_machines.
/vendingteleport <machineId>
Teleports the admin to the specified machine. In-game only.
/vendingnear [radius]
Finds nearby machines sorted by exact distance.
- Default radius:
100 - Minimum radius:
10 - Maximum radius:
1000
Per-machine output includes:
- Machine ID
- Machine type
- Business name
- Distance
- Durability
- Status
This command is in-game only because it requires the admin's current position.
Progression Command
/vendingsetlevel <businessId> <level>
Sets the business level to a value from 1 to 10.
The command also updates:
current_xptotal_xp_earnedlifetime_revenue
to the configured threshold values for that level.
NPC Sales Command
/vendingnpc <toggle|stats|force>
Controls or inspects NPC sales simulation.
| Subcommand | Description |
|---|---|
toggle | Flips Config.NPCSales.Enabled at runtime |
stats | Prints total NPC sale count, total revenue, and active state |
force | Runs a boosted test tick across loaded machines |
Works from in-game and server console.
Debug Command
/vendingdebug <subsystem> [args]
Supported subsystems:
/vendingdebug bank [businessId]
/vendingdebug daily [businessId]
/vendingdebug boxes [count]
/vendingdebug clearboxes
/vendingdebug progression <status|init|create <id>>
bank [businessId]
Prints the current built-in business-balance state.
If no business ID is provided in-game, the command tries to use the calling player's business.
Output includes:
- Business ID
- Business name
- Current business balance
daily [businessId]
Prints daily bonus diagnostics to the server console, including:
- Cached
last_daily_bonus - Cached
daily_bonus_streak - Raw and normalized database values
- UTC today and yesterday comparison
boxes [count]
Spawns temporary test pickup boxes on the pallet for visual debugging.
This is in-game only.
clearboxes
Removes all pickup boxes from cache, clients, and vending_pickup_boxes.
progression <status|init|create <id>>
Progression repair and inspection:
| Action | Description |
|---|---|
status | Prints how many businesses do or do not have progression rows |
init | Creates missing progression rows for all businesses |
create <id> | Creates a progression row for one business |
Command Reference
| Command | Description | Console |
|---|---|---|
/vendingbusiness <citizenid> | View business summary | Yes |
/vendingcreatebusiness <citizenid> <name> | Create business directly | Yes |
/vendingdeletebusiness <businessId> | Delete business | Yes |
/vendinglist [type] | List placed machines | Yes |
/vendingdelete <machineId> | Delete machine | Yes |
/vendingsetstock <machineId> <item> <qty> | Set machine stock | Yes |
/vendinggivemachine <playerId> <type> | Give unplaced machine | No practical console use |
/vendingteleport <machineId> | Teleport to machine | No |
/vendingnear [radius] | Find nearby machines | No |
/vendingsetlevel <businessId> <level> | Set business level | Yes |
| `/vendingnpc <toggle | stats | force>` |
/vendingdebug <subsystem> [args] | Debug utilities | Yes except boxes |
Admin Exports
For programmatic admin access, see Exports & API.
Key admin-facing exports:
GetAllBusinesses()GetBusinessById(businessId)GetBusinessStats(businessId)GetAllMachines()GetMachineById(machineId)AdminDeleteBusiness(businessId, adminIdentifier)AdminDeleteMachine(machineId, adminIdentifier)
Audit Trail
Admin deletions are logged as:
transaction_type = "admin_delete"player_citizenid = adminIdentifier