Configuration
Below we have explained some of the key features found in our Config file within the Vehicle Road Tax Script.
Framework
Inventory
Target System
Location
Road Tax Prices
Road Tax Duration
Using qs-inventory
Items also need to be added to the qb-core -> shared -> items.lua to ensure for compatibility with qs-inventory.
Using ox_intentory
Using qb-core
Config File before edits
Config = {}
Config.Framework = 'qbcore' -- 'qbcore', 'qbox',
Config.InventorySystem = 'qb' --'qb' = [qb-inventory], 'ox' = [ox_inventory], 'qs' = [qs-inventory]
Config.Currency = '£' -- Currency symbol for the RoadTax prices
Config.ViewPolicy_distance = 3.0 -- (METERS) This is the distance needed to be able to see the RoadTax Policy UI when the item has been used by a player
Config.RoadTaxLocation = {
coords = vector4(238.88, 221.55, 106.29, 272.3), --vector4(243.63, 226.25, 106.29, 157.3)
blipSprite = 606,
blipColor = 3,
blipScale = 0.8,
blipLabel = "Vehicle RoadTax"
}
Config.Target = 'auto' -- 'qb-target', 'ox_target', or 'auto' for auto-detection
Config.RoadTaxPrices = {
compacts = 50,
sedans = 75,
suvs = 100,
coupes = 85,
muscle = 120,
sportsclassics = 150,
sports = 200,
super = 300,
motorcycles = 40,
offroad = 90,
industrial = 80,
utility = 60,
vans = 70,
cycles = 50,
boats = 250,
helicopters = 500,
planes = 750,
service = 60,
emergency = 100,
military = 200,
commercial = 150,
trains = 1000
}
Config.RoadTaxDurations = {
{ label = "6 Weeks", weeks = 6 },
{ label = "12 Weeks", weeks = 12 } -- default
}
Config.RoadTaxPed = {
model = 'a_m_m_prolhost_01',
scenario = 'WORLD_HUMAN_CLIPBOARD'
}
Last updated