βš™οΈ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)

circle-info

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

Job Configuration

Allowed Jobs

Define which jobs can create invoices:

circle-exclamation

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

circle-info

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

circle-exclamation

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 Translationsarrow-up-right 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 Guidearrow-up-right for details.

Validation

After configuring, restart the resource:

Check console for any configuration errors.

circle-check

Last updated