πŸ“¦Installation

Prerequisites

Before installing the Billing System, ensure you have:

  • βœ… A working FiveM server

  • βœ… One of the supported frameworks (QBox, QBCore, or ESX)

  • βœ… MySQL/MariaDB database

  • βœ… Basic knowledge of FiveM resource installation

Step 1: Download

Download the latest version of src-billing from your source.

Step 2: Extract Files

Extract the src-billing folder to your server's resources directory:

server/
└── resources/
    └── [SRC]/
        └── src-billing/

Step 3: Database Setup

Import SQL File

Execute the SQL file to create the required database tables:

  1. Open your database management tool (HeidiSQL, phpMyAdmin, etc.)

  2. Select your FiveM database

  3. Import the file: src-billing/sql/billing.sql

Verify Tables

After importing, verify these tables exist:

  • billing_invoices - Stores all invoices

  • billing_cashbox - Stores cashbox balances per job

  • billing_menus - Stores customizable billing menus

Step 4: Configuration

Basic Configuration

Edit config.lua to match your server:

Framework Configuration

If auto-detection doesn't work, manually set your framework:

Step 5: Add to server.cfg

Add the resource to your server.cfg:

circle-info

Make sure to start src-billing after your framework resource.

Step 6: Restart Server

Restart your FiveM server or start the resource:

Step 7: Verify Installation

Check Console

Look for this message in your server console:

Test In-Game

  1. Join your server

  2. Get a job from Config.AllowedJobs

  3. Press F7 (or your configured key)

  4. Tablet should open

Troubleshooting Installation

Resource Won't Start

Check:

  • Resource is in correct folder

  • fxmanifest.lua exists

  • No syntax errors in config

Solution:

Database Errors

Check:

  • SQL file was imported correctly

  • Database connection is working

  • Tables exist in database

Solution: Re-import sql/billing.sql

Framework Not Detected

Check:

  • Framework resource is started

  • Framework name is correct in config

Solution:

Tablet Won't Open

Check:

  • You have an allowed job

  • Keybind is correct

  • No console errors

Solution: Check Troubleshooting Guidearrow-up-right

Next Steps

https://github.com/dollar-src/docs/blob/main/billing/gitbook-configuration.mdchevron-righthttps://github.com/dollar-src/docs/blob/main/billing/gitbook-user-guide.mdchevron-right

Optional Dependencies

For enhanced notifications:

ox_inventory

For receipt printing feature:

circle-check

Last updated