βš™οΈConfiguration

In config.lua you have everything you need to change to make the script to your liking

Language and Locales

At the moment there are only the following languages: pt-pt, pt-br, es, en, fr and de

To change the language simply change the config.lua from en to the language you want. All translations are available in the locales folder.

Config.Locale = 'en'

WhiteList Job

Config.WhiteList = true -- True if you whant to set job whitelisted false if not
Config.Jobname = 'garbage' -- Name of the witelist job

Systems and Frameworks

At the moment we work with ESX, QB-CORE and QBX frameworks. All those frameworks with ox_lib.

To change the framework or system just change it with the options given

Config.FRAMEWORK = 'QB' -- ESX OR QB
Config.INVENTORY = 'OX' -- OX OR QB
Config.NotifyType = 'QB' -- OX OR QB
Config.Target = 'QB'-- OX OR QB

Vehicle Keys System

To ensure compatibility with different key systems, you can define in config.lua whether you want to use an event or an export to give the player the keys.

Config.UseExport = false -- If 'true', uses export. If 'false', uses event.
Config.VehicleKeysEvent = "vehiclekeys:client:SetOwner" -- Event used to give vehicle keys
Config.VehicleKeysExport = "qbx-vehiclekeys" -- Name of the resource that contains the export
Config.VehicleKeysFunction = "GiveKeys" -- Function name inside the export

Values

In our script we give you the oportunity to set the script for your liking, so we implemented values that you can change to personalizate your script

Config.GarbageValue = { value = 15,} -- Value per bin deposited
Config.TruckValue = { value = 300,} -- Price to hire the truck

Config.mingarbage = {value = 5,} -- min value of garbage pickup
Config.maxgarbage = {value = 15,} -- max value of garbage pickup

GarbageValue -> Value per bin deposited to calculate the final payment

TruckValue -> Price to hire the truck before the job start

mingarbage -> Min value of garbage pickup on a job

maxgarbage -> Max value of garbage pickup on a job


Change Truck Model

Config.truckModel = 'trash' -- Change it if you want to change the truck model

Last updated

Was this helpful?