infoConfiguration

Below we have explained some of the key features found in our Config file within the Vehicle Insurance Script.


Framework

circle-info

Select your framework (by default the script will auto detect)

Config.Framework = 'qbcore' -- 'qbcore', 'qbox'

Inventory

circle-info

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

circle-info

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-detection

Location

circle-info

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

circle-info

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

circle-info

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

circle-info

If you are using qs-inventory you will need to add the following code to qs-inventory -> shared -> items.lua.

circle-exclamation
circle-info

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

circle-info

If you are using ox_inventory you will need to add the following code to ox_inventory -> data -> items.lua.


Using qb-core

circle-info

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