[PAID] [QB/ESX] TebIT: Vehicle Shops

A script by TebIT

No reviews yet.
[PAID] [QB/ESX] TebIT: Vehicle Shops main image

Full Description


image

Vehicle Shops



This resource provides multiple highly-configurable vehicle shop types, aiming to satisfy all requirements for personal vehicle purchases in your roleplay server.

  • Multiple shop types (NUI showroom, generic context menu shop, persistent showroom shops).
  • Character, job and group access restrictors for each shop.
  • Class/category restrictors for each shop.
  • Further configuration available by editing:
    • vehicles database table on ESX, adding a shop column.
    • Modifying the QBCore.Shared.Vehicles list shop var.
    • NOTE: You can restrict it to an individual shop, or any/all shops with none or all.
  • Automatic key item generation (ti_vehicleKeys).
  • Flexible finance system.
  • Ability to test-drive vehicles.

Config

All of the config vars found below are stored within the config.lua file.

Expand
config = {
    -- Automatic plate generation length (max 8)
    plateLength = 7,

    -- Max test drive time in minutes
    testDriveTime = 0.5,

    -- Command to repay finance
    repayFinanceCommand = "vehicle:repayFinance",
}

Shop Creation

For type-specific config options, check out the documentation.
A working example can be found in the shops.lua file.


Labels

All labels and translations can be found within the labels.lua file.

Expand
labels = {
    invalidInterior = "Invalid interior.",
    notEnoughMoney = "Not enough money.",
    ...
}

Usage

Check out the wiki for an update-to-date list of dependencies, conflicting resources, examples, and proper export documentation. You can otherwise contact me via DM for further instruction.

Code is accessible No
Subscription-based No
Lines (approximately) 3000
Requirements ti_utils
ti_vehicleKeys (For adding key items to owner-player correctly)
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily