For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

config.lua Overview

The config.lua file contains all configuration options for the Billing System.

Framework Settings

Framework Selection

Config.Framework = 'auto'

Options:

  • 'auto' - Automatically detect framework (recommended)

  • 'qbox' - Force QBox framework

  • 'qb' - Force QBCore framework

  • 'esx' - Force ESX framework

  • 'custom' - Use custom framework (requires bridge setup)

Auto-detection works in most cases. Only set manually if detection fails.

Job Configuration

Allowed Jobs

Define which jobs can create invoices:

Keybind Settings

Tablet Open Key

Common Options:

  • 'F7' - F7 key (default)

  • 'F6' - F6 key

  • 'K' - K key

  • Any valid FiveM key code

Distance Settings

Nearby Player Detection

Maximum distance (in meters) to detect nearby players for invoicing.

Invoice Settings

Amount Limits

  • MinAmount - Minimum invoice amount

  • MaxAmount - Maximum invoice amount

Tax Configuration

Examples:

  • 0 - No tax

  • 0.18 - 18% tax

  • 0.25 - 25% tax

Tax is automatically calculated and added to invoice total.

Payment Methods

Enable or disable payment methods:

  • AllowBankPayment - Allow bank transfers

  • AllowCashPayment - Allow cash payments

Feature Toggles

  • AllowMultiRecipient - Allow invoices to multiple players

  • AllowPhotoAttachment - Allow photo attachments

  • AllowRecurringPayments - Allow installment payments

Notification Settings

Duration and Position

Position Options:

  • 'top-right'

  • 'top-left'

  • 'bottom-right'

  • 'bottom-left'

Receipt Settings

  • Enabled - Enable receipt printing

  • RequireOxInventory - Require ox_inventory

  • ItemName - Item name to give player

Cashbox Settings

Per-Job Cashbox

  • Enabled - Enable cashbox feature

  • SharedBetweenJobs - Share cashbox between all jobs

Camera Settings

Photo Attachment Camera

  • FOV - Camera field of view

  • MaxPhotos - Maximum photos per invoice

  • PhotoQuality - 'low', 'medium', 'high'

Language Settings

Default Language

Available Languages:

  • 'en' - English

  • 'tr' - Turkish

See Translations for adding more languages.

Example Configurations

Police Department

Mechanic Shop

Hospital

Advanced Configuration

Billing Menus

Billing menus are configured per-job in the admin panel or database.

See Admin Guide for details.

Validation

After configuring, restart the resource:

Check console for any configuration errors.

Last updated