Configuration
Below we have explained some of the key features found in our Config file within the Vehicle Insurance Script.
Framework
Select your framework (by default the script will auto detect)
Config.Framework = 'qbcore' -- 'qbcore', 'qbox'Inventory
If you have an inventory system that is not one of the listed types then this means the script doesn't support
it as of this moment in time.
Config.InventorySystem = 'qs' --'qb' = [qb-inventory], 'ox' = [ox_inventory], 'qs' = [qs-inventory]Target System
The script supports both qb-target and ox_target to allow the 3rd eye functions within this script.
Config.Target = 'auto' -- 'qb-target', 'ox_target', or 'auto' for auto-detectionLocation
Location setting is critical to allowing your players to get access to the insurance interface, the default location is inside Big Bank in Vinewood. If you have an interior you wish to place the ped in you can always set it here.
Config.InsuranceLocation = {
coords = vector4(234.49, 226.13, 106.29, 246.05), --vector4(243.63, 226.25, 106.29, 157.3)
blipSprite = 606,
blipColor = 3,
blipScale = 0.8,
blipLabel = "Vehicle Insurance"
}Insurance Prices
You can set the vehicles insurance price by category in the config file. This allows you reduce the amount or increase to suit your economy.
Direct Debit
Your players can pay outright or by monthly installments with a direct debit, configuring the below settings will let you decide how frequently they are billed and how much interest they will pay for spreading the cost. The late fee is a last resort and rarely gets used but you don't want players driving around with no insurance.
Using qs-inventory
If you are using qs-inventory you will need to add the following code to qs-inventory -> shared -> items.lua.
Items also need to be added to the qb-core -> shared -> items.lua to ensure for compatibility with qs-inventory.
To Display Metadata and depending on your version of qs-inventory you will need to add the following snippet below the existing id_card in this file qs-inventory -> config -> metadata.js.
Using ox_intentory
If you are using ox_inventory you will need to add the following code to ox_inventory -> data -> items.lua.
Using qb-core
If you are using qb-inventory you will need to add the following code to qb-core -> shared -> items.lua.
Config File before edits
Last updated