Page cover

βš™οΈConfiguration

This is the configuration that you can give to this script to modify it to your liking

Config File

Config = {}
-- Developer Settings
Config.Debug = false

-- Translations Settings
Config.Locale = 'en' -- Set language ['es', 'en', 'fr', 'pt']

-- Framework Settings
Config.Framework = 'QBCore' -- Only support 'ESX' or 'QBCore'
Config.FrameworkName = 'qb-core' -- Put your core resource name folder | QBCore = 'qb-core' or ESX = 'es_extended'


-- Vehicles Settings
Config.FormatInSpeedStats = 'KM/H' --- If you disable this they will only work in miles per second.
Config.MaxSpeedKMH = true --- If you disable this they will only work in miles per second.
Config.MaxSpeedBarLength = 500 --- This will show the maximum value in the vehicle's speed statistics bar, do not touch if you do not know how to do this.

Config.ForceRotation = 3.0 --- This is the rotational force of the vehicle with the mouse wheel. 

Config.CustomTestPlate = 'TEST'
Config.TestTimer = 60 --- Set in seconds
Config.StartVehicleColor = { r = 255, g = 255, b = 255}
Config.DefaultRoutingBucket = 0 -- If you don't know what it is, don't touch it

Config.EnabledSocietyPay = true -- Speak to the function of adding money when buying a vehicle to the society.
Config.SocietyJob = 'cardealer' -- Add money to the partnership when purchasing a vehicle.
Config.NewManagementSystem = false

-- Currencies
Config.VIPCurrency = 'coins'
Config.SellCurrency = 'bank'

-- Stock System
Config.EnableStock = true
Config.MaxStatsStock = 100

-- Camera Settings
Config.FovCamera = 100.0

-- Shops Settings
Config.Shops = {
    ['pdm_main_1'] = {
        label = 'Vehicles - PDM',
        description = 'Β‘Bienvenidos a nuestra distinguida concesionaria! <br><br>En este espacio, nos esforzamos por ofrecer una experiencia ΓΊnica y satisfactoria para cada uno de nuestros valiosos clientes. En nuestra amplia selecciΓ³n de vehΓ­culos, encontrarΓ‘n la combinaciΓ³n perfecta de calidad, estilo y rendimiento que estΓ‘n buscando.',
        img = 'https://i.ibb.co/qxYKPLk/1361.jpg', -- Upload images here (https://es.imgbb.com/)
        marker = {
            type = 36,
            distance = 10.0,
            color = {r = 0, g = 200, b = 0, a = 255},
            scale = vector3(0.4, 0.4, 0.4),
            location = vector3(-56.3652, -1096.4497, 26.4223),
        },
        blip = {
            label = 'Vehicles Shop',
            sprite = 225,
            color = 0,
            scale = 0.8,
        },
        camera = {
            car_position = vector4(-43.1993, -1094.2572, 26.4224, 216.3854),
            camera_position = vector4(-44.1339, -1097.0167, 26.4224, 340.0392),
        },
        vehicle = {
            delivered = vector4(-50.2018, -1076.9784, 26.8831, 66.8324),
            test = vector4(-50.2018, -1076.9784, 26.8831, 66.8324),
        },
        sell = {
            enabled = true,
            marker = {
                type = 29,
                distance = 10.0,
                color = {r = 0, g = 200, b = 0, a = 255},
                scale = vector3(0.9, 0.9, 0.9),
            },
            position = vector3(-46.4420, -1082.7926, 26.7629),
            porcentage = 50
        }
    },
    ['boat_main_1'] = {
        label = 'Boats - Shop',
        description = 'Β‘Bienvenidos a nuestra distinguida concesionaria de Botes! <br><br>En este espacio, nos esforzamos por ofrecer una experiencia ΓΊnica y satisfactoria para cada uno de nuestros valiosos clientes. En nuestra amplia selecciΓ³n de vehΓ­culos, encontrarΓ‘n la combinaciΓ³n perfecta de calidad, estilo y rendimiento que estΓ‘n buscando.',
        img = 'https://i.ibb.co/pLc0sJF/boatshop.png', -- Upload images here (https://es.imgbb.com/)
        marker = {
            type = 35,
            distance = 10.0,
            color = {r = 0, g = 200, b = 0, a = 255},
            scale = vector3(0.4, 0.4, 0.4),
            location = vector3(-940.5393, -1480.2214, 1.5954),
        },
        blip = {
            label = 'Boats Shop',
            sprite = 427,
            color = 0,
            scale = 0.8,
        },
        camera = {
            car_position = vector4(-947.2571, -1464.6824, -0.5080, 291.3913),
            camera_position = vector4(-945.6191, -1469.3267, 2.4169, 23.8710),
        },
        vehicle = {
            delivered = vector4(-927.3200, -1478.9087, 0.3802, 16.8988),
            test = vector4(-888.2534, -1442.1700, 0.4207, 283.7739),
        },
        sell = {
            enabled = true,
            marker = {
                type = 29,
                distance = 10.0,
                color = {r = 0, g = 200, b = 0, a = 255},
                scale = vector3(0.9, 0.9, 0.9),
            },
            position = vector3(-919.0627, -1475.3794, 0.4415),
            porcentage = 50
        }
    },
    ['plane_main_1'] = {
        label = 'Plane - Shop',
        description = 'Β‘Bienvenidos a nuestra distinguida concesionaria de Aviones! <br><br>En este espacio, nos esforzamos por ofrecer una experiencia ΓΊnica y satisfactoria para cada uno de nuestros valiosos clientes. En nuestra amplia selecciΓ³n de vehΓ­culos, encontrarΓ‘n la combinaciΓ³n perfecta de calidad, estilo y rendimiento que estΓ‘n buscando.',
        img = 'https://i.ibb.co/PFQThzC/planeshop.png', -- Upload images here (https://es.imgbb.com/)
        marker = {
            type = 33,
            distance = 20.0,
            color = {r = 0, g = 200, b = 0, a = 255},
            scale = vector3(0.4, 0.4, 0.4),
            location = vector3(-959.8340, -2974.1289, 13.9451),
        },
        blip = {
            label = 'Planes Shop',
            sprite = 423,
            color = 0,
            scale = 0.8,
        },
        camera = {
            car_position = vector4(-983.0347, -3014.9414, 13.9451, 56.1849),
            camera_position = vector4(-980.9340, -3009.9883, 13.9451, 159.6980),
        },
        vehicle = {
            delivered = vector4(-967.1033, -3003.3198, 13.9451, 57.5427),
            test = vector4(-1033.7959, -3123.5962, 13.9675, 59.8178),
        },
        sell = {
            enabled = true,
            marker = {
                type = 29,
                distance = 10.0,
                color = {r = 0, g = 200, b = 0, a = 255},
                scale = vector3(0.9, 0.9, 0.9),
            },
            position = vector3(-961.3760, -2964.7075, 13.9451),
            porcentage = 50
        }
    },
    ['heli_main_1'] = {
        label = 'Helicopter',
        description = 'Β‘Bienvenidos a nuestra distinguida concesionaria de Helipuerto! <br><br>En este espacio, nos esforzamos por ofrecer una experiencia ΓΊnica y satisfactoria para cada uno de nuestros valiosos clientes. En nuestra amplia selecciΓ³n de vehΓ­culos, encontrarΓ‘n la combinaciΓ³n perfecta de calidad, estilo y rendimiento que estΓ‘n buscando.',
        img = 'https://i.ibb.co/Jymb859/halishop.png', -- Upload images here (https://es.imgbb.com/)
        marker = {
            type = 34,
            distance = 20.0,
            color = {r = 0, g = 200, b = 0, a = 255},
            scale = vector3(0.4, 0.4, 0.4),
            location = vector3(-1097.1121, -2878.5420, 13.9471),
        },
        blip = {
            label = 'Heliport Shop',
            sprite = 481,
            color = 0,
            scale = 0.8,
        },
        camera = {
            car_position = vector4(-1112.4716, -2883.6052, 13.9460, 146.0821),
            camera_position = vector4(-1107.4045, -2887.2820, 14.9460, 55.1331),
        },
        vehicle = {
            delivered = vector4(-1145.9761, -2864.3367, 13.9460, 147.5178),
            test = vector4(-1178.3162, -2845.5588, 13.9458, 148.2041),
        },
        sell = {
            enabled = true,
            marker = {
                type = 29,
                distance = 10.0,
                color = {r = 0, g = 200, b = 0, a = 255},
                scale = vector3(0.9, 0.9, 0.9),
            },
            position = vector3(-1188.4912, -2863.6943, 13.9456),
            porcentage = 50
        }
    },

   
}


Notify = function (msg, type)  -- Send Notification System
    TriggerEvent('QBCore:Notify', msg, type)
    -- TriggerEvent('esx:showNotification', msg)
end 

Config.CustomPauseMenu = false -- If you use a custom pause menu you can add here the function to close it automatically so that there are no bugs.

ClosePauseMenu = function ()  -- If you have the Config.CustomPauseMenu set to false ignore this
    exports['custom_pausemenu']:ClosePauseMenu()
end -- [
    -- Modify your pause menu to be able to close it,
    -- if you don't know how to do it you can open a
    -- support ticket and we will help you.
    -- ]


-- Key System

Config.Vehiclekey = false
Config.VehicleSystem = 'cd_garage'


KeyVehicle = function(vehicle)
    if Config.Vehiclekey then
        if Config.VehicleSystem == 'cd_garage' then
            TriggerEvent('cd_garage:AddKeys', exports['cd_garage']:GetPlate(vehicle))
        elseif Config.VehicleSystem == 'qs-vehiclekeys' then
            exports['qs-vehiclekeys']:GiveKeys(plate)
        elseif Config.VehicleSystem == 'wasabi-carlock' then
            exports.wasabi_carlock:GiveKey(plate)
        elseif Config.VehicleSystem == 'qb-vehiclekeys' then
            TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
            
        end
    end
end


-- Fuel System

Config.EnableFuel = true
Config.FuelSystem = 'LegacyFuel'

FuelVehicle = function(vehicle)
    if Config.EnableFuel then
        if Config.FuelSystem == 'LegacyFuel' then
            return exports["LegacyFuel"]:SetFuel(vehicle, 100)
        elseif Config.FuelSystem == 'x-fuel' then
            return exports["x-fuel"]:SetFuel(vehicle, 100)
        elseif Config.FuelSystem == 'x-fuel' then
            return exports["x-fuel"]:SetFuel(vehicle, 100)
        elseif Config.FuelSystem == 'ox-fuel' then
            return SetVehicleFuelLevel(vehicle, 100)
        elseif Config.FuelSystem == 'nd-fuel' then
            return exports["nd-fuel"]:SetFuel(vehicle, 100)
        elseif Config.FuelSystem == 'frfuel' then
            return exports.frfuel:setFuel(vehicle, 100)
        elseif Config.FuelSystem == 'cdn-fuel' then
            return exports['cdn-fuel']:SetFuel(vehicle, 100)
        elseif Config.FuelSystem == 'hyon_gas_station' then
            return exports["hyon_gas_station"]:SetFuel(vehicle, 100)
        end
    end

end

Config.RevivePlayerSystem = true -- System to revive the player when he dies in the vehicle test.
DeadPlayer = function()
    TriggerEvent('hospital:client:Revive')

    -- TriggerEvent('esx_ambulancejob:revive')

end

Locales Editable

/shared/locales.lua

Server Side Editable

/shared/sv_editable.lua

How to add categories?

  1. Select table biyei_hvehicleshop_category

  1. You can add more categories here:

  1. For example:

How to add vehicles?

  1. Select biyei_hvehicleshop_vehicles

  1. You can add vehicles here

  1. For example:

How to add vip vehicles?

  1. In vehicle list table in SQL biyei_hvehicleshop_vehicles change value vip to 1

How to add images of the vehicles?

  1. Go to biyei_hvehicleshop\ui\assets\imgs\vehicles and put the images of the vehicles here, remember that the images must have as name the model of the vehicle.

Last updated