UZ Scripts
Vehicle Shop

Configuration

Professional configuration guide for the Taintless Vehicle Shop system — dealerships, vehicles, finance, and more.

System Configuration (Customize Table)

Global system parameters and operational settings.

Customize.lua
insertMe.sql
Customize = {
    Locale = 'en',
    Framework = nil,
    NotifySystem = nil,
    NotifyStyle = 'top-center',
    TestDriveTime = 35,
    Currency = 'USD',
    DebugMessage = false,

    Finance = {
        Command = 'vfinance',
    },

    Client = {
        SetUI = function(value) -- ... end,
        GiveKeys = function(plate, vehicle, type) -- ... end,
    }
}

Prop

Type

Finance.Command

The chat command for players to check their vehicle financing status.

  • Default: 'vfinance'

Client.SetUI

Manage UI visibility (e.g., hide the HUD) when the shop is open.

SetUI = function(value)
    if GetResourceState('uz_PureHud') == 'started' then
        exports['uz_PureHud']:SetHudVisibility(value)
    end
end,

Client.GiveKeys

Handle giving vehicle keys after a purchase or test drive.

GiveKeys = function(plate, vehicle, type)
    if GetResourceState('qb-vehiclekeys') == 'started' then
        TriggerEvent("vehiclekeys:client:SetOwner", plate)
    end
end

PlateFormat

Custom license plate format configuration.

PlateFormat = '1AA111AA'
  • 1: Number (0-9)
  • A: Letter (A-Z)
  • Example: '1AA111AA' generates plates like 2AB345CD
  • Example: 'AA1111' generates plates like AB1234

Dealership Management (Customize.DealershipLocations)

Individual dealership configuration and operational parameters.


Vehicle Configuration

Customize.CategoryLabels

Vehicle category display configuration.

Customize.CategoryLabels = {
    ['sports'] = 'Sports Cars',
    ['sedans'] = 'Sedans',
    ['super'] = 'Super Cars',
}

Customize.Vehicles

Complete vehicle inventory configuration.

Customize.Vehicles = {
    ['super'] = { -- Category identifier
        {
            name = 'Adder',      -- Display name
            brand = 'Truffade',  -- Manufacturer
            model = 'adder',     -- Spawn model
            price = 86065,       -- Base price
            hash = `adder`,      -- Model hash
        },
    },
}

Vehicle additions require entry in appropriate category. New categories require CategoryLabels and Vehicles configuration.

On this page