Page cover

πŸ“Œ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.


circle-info

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
        ---
    },
}

circle-info

Interaction Locations

  • Define locations for target zones allowing players to interact and open the billing interface

  • The name is the zone name and must be unique for caching

  • Set enabled to true to use this interaction location

  • Set debug to true to visually debug the interaction location

  • The coords must be a vector3 value

  • radius is the zone size radius

  • distance is the maximum distance allowed for interaction (do not set this figure higher than the MaxDistance figure set in Config.CoreSettings.Security

  • icon is the target icon

  • label is the target label

  • job is the job that can access this location. This is the job you define in Config.CoreSettings.Jobs

  • args when making a location ensure you pass the locationName which is the key of the location


circle-info

Blips

  • Each location can have its own custom blip

  • Set enabled to true to use a blip for this location

  • id is the blip id

  • colour is the blip colour

  • scale is the blip scale on the map

  • title is the name of the blip


circle-info

Commission

  • Each location can have its own commission settings

  • Set enabled to true to use the commission system for this location

  • Define the commision percent you want from each sale paid to the employee


circle-info

Rank Requirement Access

  • Each location can have its own minimum job rank requirement to use the billing interface

  • Set enabled to true to use the minimum job rank system for this location

  • Define the minimum rank required to access the billing interface


circle-info

Progress Circle

  • Each location can have unique progress data with animations and a prop

  • The label is the label of the progress circle (the % is the billing characters name do not edit this)

  • The duration is the length of the progress circle in seconds

  • Define animation data in the anim table providing the dict , clip and the flag

  • Define prop data for the animation in the prop table providing the model , bone , pos and rot


circle-info

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


circle-info

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 enabled to true to use the services list

  • Then define services available and their respective costs in the type table

  • The name is the text name of the service

  • The price is the cost of that service


circle-check
  • 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