Job

Config.GradesOpenInformation = { 3, 4 } -- Grandes of cardealer can open the information of business

Config.Ownable = {
    enable = true, -- Enable vehicleshop owned?
    jobOwner = "cardealer", -- Job name to acess all features
    menuLocation = vector3(-26.49, -1104.6, 27.27), -- Boss menu
    restockOptions = {
        truckModel = "flatbed", -- Model of vehicle uses to pick up vehicles
        truckLocation = vector4(-18.37, -1101.77, 26.95, 158.96), -- Location where flatbed gona spawn when player start re-stock
        deliverLocation = vector3(-21.42, -1089.33, 27.27), -- Location when player deliver the vehicle after pick up
        carsRestock = math.random(1, 2), -- Player get's one, but you can put more stock for each vehicle
    }
}

-- Settings for re-stock vehicles
Config.RestockLocations = {
    vehicles = {
        [1] = {coords = vector3(-207.3, -1182.83, 23.03), heading = 87.23},
    },
    boats = {
        [1] = {coords = vector3(-783.32, -1497.41, 0.83), heading = 291.41},
    }
}

-- This commands only works if you use Config.Ownable.enable
Config.Commands = {
    [1] = {
        command = "addvehicletoshop",
        description = "Add a vehicle to shop",
    },
    [2] = {
        command = "importvehicle", -- This is the command where all vehicles of qb-core/shared/vehicles.lua 
        description = "Import vehicles from qb-core vehicles"
    }
}

-- @param value: category name
-- @param label: label name
-- @param testdriveOption: "vehicles", "motorcycles", "boats", "airplanes"

Config.Categories = {
    { value = "vans",             label = "Vans",           testdriveOption = "vehicles" },
    { value = "suvs",             label = "Suvs",           testdriveOption = "vehicles" },
    { value = "super",            label = "Super",          testdriveOption = "vehicles" },
    { value = "sportsclassics",   label = "Classic",        testdriveOption = "vehicles" },
    { value = "sedans",           label = "Sedans",         testdriveOption = "vehicles" },
    { value = "planes",           label = "Planes",         testdriveOption = "airplanes" },
    { value = "offroad",          label = "Offroad",        testdriveOption = "vehicles" },
    { value = "muscle",           label = "Muscle",         testdriveOption = "vehicles" },
    { value = "motorcycles",      label = "Motorcycles",    testdriveOption = "motorcycles" },
    { value = "industrial",       label = "Industrial",     testdriveOption = "vehicles" },
    { value = "helicopters",      label = "Helicopters",    testdriveOption = "vehicles" },
    { value = "cycles",           label = "Cycles",         testdriveOption = "vehicles" },
    { value = "coupes",           label = "Coupes",         testdriveOption = "vehicles" },
    { value = "compacts",         label = "Compacts",       testdriveOption = "vehicles" },
    { value = "commercial",       label = "Commercial",     testdriveOption = "vehicles" },
    { value = "boats",            label = "Boats",          testdriveOption = "boats" },
}

Last updated