
πBilling Locations
You can define as many billing locations as you require in Config.Billing in billing.lua
The key is the location name and must match the key in Config.CoreSettings.Jobs to function as intended. The job name you define must also be in your ``QB-Core/shared/jobs.lua.
Location Name
The key is the location name and must match throughout
--billing locations
Config.Billing = {
['Example Billing Location'] = { -- the key is the location name and must match throughout
---
},
}Interaction Locations
Define locations for target zones allowing players to interact and open the billing interface
The
nameis the zone name and must be unique for cachingSet
enabledto true to use this interaction locationSet
debugto true to visually debug the interaction locationThe
coordsmust be avector3valueradiusis the zone size radiusdistanceis the maximum distance allowed for interaction (do not set this figure higher than theMaxDistancefigure set in Config.CoreSettings.Securityiconis the target iconlabelis the target labeljobis the job that can access this location. This is the job you define in Config.CoreSettings.Jobsargswhen making a location ensure you pass thelocationNamewhich is the key of the location
Blips
Each location can have its own custom blip
Set
enabledto true to use a blip for this locationidis the blip idcolouris the blip colourscaleis the blip scale on the maptitleis the name of the blip
Commission
Each location can have its own commission settings
Set
enabledto true to use the commission system for this locationDefine the commision
percentyou want from each sale paid to the employee
Rank Requirement Access
Each location can have its own minimum job rank requirement to use the billing interface
Set
enabledto true to use the minimum job rank system for this locationDefine the minimum
rankrequired to access the billing interface
Progress Circle
Each location can have unique progress data with animations and a prop
The
labelis the label of the progress circle (the % is the billing characters name do not edit this)The
durationis the length of the progress circle in secondsDefine animation data in the
animtable providing thedict,clipand theflagDefine prop data for the animation in the
proptable providing themodel,bone,posandrot
Payment Types
Each location can have unique payment types allowed at this location
Define which payment method you want available by setting the relevant boolean value to true or false
Both payment types can be accepted by enabled both to true
Services List
Each location can have its own list of predefined services or the option to disable the service list and use custom input fields for price and services offered. This is a multi select option if more than 1 option is available and the script will calculate the total costs automatically
Set
enabledto true to use the services listThen define services available and their respective costs in the
typetableThe
nameis the text name of the serviceThe
priceis the cost of that service
Finished Config
Below is an example of a finished config file for an example billing location with commission enabled, minimum job rank required enabled, cash and bank payment types accepted and a services list with defined options and prices
Last updated