Skip to content

Core-Billing

Requirements


Installation

  1. Place the core-billing folder in your server's resources directory

  2. Add to your server.cfg

ensure core-billing
  1. Configure to match your server — see Configuration

  2. Restart your server or run refresh then ensure core-billing in console


Configuration

All settings are in config.lua

Config.ProfitPercent = 10        -- Employee cut as a percentage of the bill
Config.BillExpiry = 300000       -- Time in ms before a pending bill expires (default 5 min)
Config.MaxBillAmount = 10000     -- Maximum bill amount a player can send
Config.Currency = 'cash'         -- Payment type

How It Works

  1. Employee opens the billing menu and enters an amount
  2. A bill is sent to the nearest player in range
  3. Customer receives an ox_lib prompt to accept or decline
  4. If accepted — funds transfer, employee receives their profit cut, society receives the remainder
  5. If declined or ignored — bill expires and is removed from the table
  6. All transactions validated server-side before any money moves

Support