📃Config

Config = {}

Config.CoreName = "qb-core" -- Your qb-core folder name
Config.Notify = "ox" -- "qb" / "ox" / okok ( open code on config_functions.lua )
Config.Display = "ox_lib" -- "ox_lib" or "lation_ui" ( open code on config_functions.lua )

Config.VespucciShops = {
    ["BikeRental"] = { -- Don't change
        blipSettings = { enable = true, sprite = 226, scale = 0.8, colour = 3, name = "Bike Rental"},
        pedLocation = vec4(-1266.17, -1419.4, 4.37, 121.47),
        pedModel = "u_m_y_gabriel",
        spawnBike = vec4(-1274.11, -1426.25, 4.36, 121.17),
        icon = "fas fa-motorcycle",
        label = "Rent a Bike",
        bikesSelling = {
            [1] = {
                code = "bmx",
                label = "BMX",
                price = 500,
            },
        },
        callback = function()
            local options = {}
            for _, bike in ipairs(Config.VespucciShops["BikeRental"].bikesSelling) do
                table.insert(options, {
                    title = bike.label,
                    description = Language.price.. " ".. Language.currency .. bike.price,
                    icon = "bicycle",
                    onSelect = function()
                        RentBike(bike.code, bike.price, Config.VespucciShops["BikeRental"].spawnBike)
                    end,
                })
            end

            RegisterContextMenu('bike_rental', 'Bike Rental', options)
            ShowContextMenu('bike_rental')
        end,
    },
    ["MaskShop"] = {
        blipSettings = { enable = true, sprite = 269, scale = 0.8, colour = 3, name = "Mask Shop"},
        pedLocation = vector4(-1337.07, -1277.67, 4.88, 97.45),
        pedModel = "a_m_y_juggalo_01",
        icon = "fas fa-mask",
        label = "Mask's Shop",
        masksList = {
            [1] = { name = "m_hockeymask", price = 25 },
            [2] = { name = "m_monkeymask", price = 25 },
            [3] = { name = "m_scarecrowmask", price = 25 },
            [4] = { name = "m_skullmask", price = 25 },
            [5] = { name = "m_terror", price = 25 },
            [6] = { name = "m_bear", price = 25 },
            [7] = { name = "m_bull", price = 25 },
            [8] = { name = "m_cookie", price = 25 },
            [9] = { name = "m_eagle", price = 25 },
            [10] = { name = "m_eagle2", price = 25 },
            [11] = { name = "m_fox", price = 25 },
            [12] = { name = "m_owl", price = 25 },
            [13] = { name = "m_pig", price = 25 },
        },
        callback = function()
            local options = {}
            for k,v in pairs(Config.VespucciShops["MaskShop"].masksList) do
                table.insert(options, {
                    title = GetItemLabelFromInventory(v.name),
                    description = Language.price.. " ".. Language.currency .. v.price,
                    icon = GetImageFromInventory(v.name),
                    onSelect = function()
                        BuyItem(v.name, v.price)
                    end,
                })
            end

            RegisterContextMenu('mask_shop', 'Mask Shop', options)
            ShowContextMenu('mask_shop')
        end,
    },
    ["WineShop"] = {
        blipSettings = { enable = true, sprite = 93, scale = 0.8, colour = 3, name = "Wine Shop"},
        pedLocation = vector4(-1299.63, -1378.62, 4.49, 110.73),
        pedModel = "cs_andreas",
        icon = "fas fa-wine-bottle",
        label = "Wine's Shop",
        buySettings = { min = 1, max = 10, default = 1 },
        winesList = {
            [1] = { name = "m_sette", price = 75 },
            [2] = { name = "m_bigbanyanmerlot", price = 75 },
            [3] = { name = "m_tempranillo", price = 75 },
            [4] = { name = "m_yorkarros", price = 75 },
            [5] = { name = "m_myracabernet", price = 75 },
            [6] = { name = "m_santacarolina", price = 75 },
            [7] = { name = "m_budweiser", price = 75 },
            [8] = { name = "m_corona", price = 75 },
            [9] = { name = "m_stellaartois", price = 75 },
        },
        callback = function()
            local options = {}
            for k,v in pairs(Config.VespucciShops["WineShop"].winesList) do
                table.insert(options, {
                    title = GetItemLabelFromInventory(v.name),
                    description = Language.price.. " ".. Language.currency .. v.price,
                    icon = GetImageFromInventory(v.name),
                    onSelect = function()
                        BuyItem(v.name, v.price)
                    end,
                })
            end

            RegisterContextMenu('wine_shop', 'Wine Shop', options)
            ShowContextMenu('wine_shop')
        end,

    },
}


Config.MaskSettings = {
    Male = {
        Terror = 57,
        Hockey = 4,
        Scare = 69,
        Monkey = 3,
        Skull = 2,
        Bear = 21,
        Bull = 23,
        Cookie = 33,
        Eagle = 196,
        Eagle2 = 24,
        Fox = 18,
        Owl = 19,
        Pig = 1,
    },
    Female = {
        Terror = 57,
        Hockey = 4,
        Scare = 69,
        Monkey = 3,
        Skull = 2,
        Bear = 21,
        Bull = 23,
        Cookie = 33,
        Eagle = 196,
        Eagle2 = 24,
        Fox = 18,
        Owl = 19,
        Pig = 1,
    },
}

Last updated