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_xp
  • total_xp_earned
  • lifetime_revenue

to the configured threshold values for that level.

NPC Sales Command

/vendingnpc <toggle|stats|force>

Controls or inspects NPC sales simulation.

SubcommandDescription
toggleFlips Config.NPCSales.Enabled at runtime
statsPrints total NPC sale count, total revenue, and active state
forceRuns 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 &lt;status|init|create &lt;id&gt;&gt;

Progression repair and inspection:

ActionDescription
statusPrints how many businesses do or do not have progression rows
initCreates missing progression rows for all businesses
create &lt;id&gt;Creates a progression row for one business

Command Reference

CommandDescriptionConsole
/vendingbusiness &lt;citizenid&gt;View business summaryYes
/vendingcreatebusiness &lt;citizenid&gt; &lt;name&gt;Create business directlyYes
/vendingdeletebusiness &lt;businessId&gt;Delete businessYes
/vendinglist [type]List placed machinesYes
/vendingdelete &lt;machineId&gt;Delete machineYes
/vendingsetstock &lt;machineId&gt; &lt;item&gt; &lt;qty&gt;Set machine stockYes
/vendinggivemachine &lt;playerId&gt; &lt;type&gt;Give unplaced machineNo practical console use
/vendingteleport &lt;machineId&gt;Teleport to machineNo
/vendingnear [radius]Find nearby machinesNo
/vendingsetlevel &lt;businessId&gt; &lt;level&gt;Set business levelYes
`/vendingnpc <togglestatsforce>`
/vendingdebug &lt;subsystem&gt; [args]Debug utilitiesYes 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