⚙️Configuration

Configuration guide of Weapon Shop

Config.lua

Config = {}
Config.Framework = "auto" -- auto, esx or qb
Config.Locales = {}
Config.Language = "en" -- en, de, fr, es, pt, ja, ar, zh, nl, it

Config.Target = false -- If you want to use a target system, set this to true.
Config.NPC = "a_m_y_mexthug_01" -- https://docs.fivem.net/docs/game-references/ped-models/
Config.weaponWithItem = true -- If you are not using weapons as items but instead using the weapon wheel, set this to false.

Config.License = false -- If you want to use a weapon license system, set this to true.

Config.Blip = { -- https://docs.fivem.net/docs/game-references/blips/
    label = "Weapon Shop",
    sprite = 110,
    scale = 0.7,
    color = 3,
    visible = true
}

Config.Notify = function(message)
    lib.notify({
        title = getMessage('notify_title'),
        description = message,
        type = "info"
    })
end

Config.Shops = {
    vector4(-662.37, -933.52, 21.81, 175.91),
    vector4(810.40594482422,-2159.0717773438,29.619016647339, 360),
    vector4(1692.1796875,3760.9536132812,34.705352783203, 230.0),
    vector4(-331.82290649414,6084.8291015625,31.454767227173, 221.10),
    vector4(253.8076171875,-50.484619140625,69.94108581543, 62.36),
    vector4(22.721956253052,-1105.5355224609,29.797012329102, 153.07),
    vector4(2567.904296875,292.50888061523,108.73487854004, 0.0),
    vector4(-1118.8929443359,2699.9951171875,18.554149627686, 219.26),
    vector4(842.08331298828,-1035.2698974609,28.194845199585, 0),
}

Config.Categories = { -- preview of weapon (other weapons in official config) 
    [1] = {
        name = "melee",
        label = "Melee",
        license = "weapon",
        weapons = {
            [1] = {
                name = "weapon_dagger",
                label = "Dagger",
                price = 500,
                status = {
                    bullet_speed = 0,
                    magazine_capacity = 0,
                    range = 0,
                    damage = 70
                }
            },
        }
    },
}

Last updated