Config file

Config = {}

--[[ Language ]]--
Config.Locale = 'en' -- en, de, es, cs.

--[[ Framework ]]--
Config.Framework = {
    type = 'esx', -- esx, qbcore.
    export = 'es_extended', -- Default exports - esx: [es_extended], qbcore: [qb-core].
}

--[[ Inventory ]]--
Config.Inventory = 'ox'    -- ox     - https://github.com/overextended/ox_inventory.
                           -- qb     - https://github.com/qbcore-framework/qb-inventory.
                           -- qs     - https://buy.quasar-store.com/package/4770732.
                           -- ps     - https://github.com/Project-Sloth/ps-inventory.
                           -- codem  - https://codem.tebex.io/package/5900973.
                           -- core   - https://core.tebex.io/package/5123274.
Config.Images = 'ox_inventory/web/images/'    -- ox     - ox_inventory/web/images/.
                                              -- qb     - qb-inventory/html/images/.
                                              -- qs     - qs-inventory/html/images/.
                                              -- ps     - ps-inventory/html/images/.
                                              -- codem  - codem-inventory/html/itemimages/.
                                              -- core   - core_inventory/html/img/.

--[[ Menu ]]--
Config.Menu = 'ox'         -- ox  - https://overextended.github.io/docs.
                           -- esx - https://github.com/esx-framework/esx-legacy/tree/main/%5Besx%5D/esx_menu_default.
                           -- qb  - https://github.com/qbcore-framework/qb-menu.

--[[ Action Menu ]]--
Config.ActionMenu = 'ox'    -- ox      - https://github.com/overextended/ox_target.
                            -- qb      - https://github.com/qbcore-framework/qb-target.
                            -- q       - https://github.com/thelindat/qtarget.
                            -- helpox  - https://overextended.dev/ox_lib/Modules/Interface/Client/textui#libshowtextui.
                            -- helpqb  - https://docs.qbcore.org/qbcore-documentation/qb-core/drawtext.
                            -- helpesx - https://esx-brasil.github.io/es_extended/client/functions/showhelpnotification.

--[[ ProgressBar ]]--
Config.ProgressBar = 'ox'  -- none           - No ProgressBar.
                           -- ox             - https://overextended.github.io/docs.
                           -- qb             - https://github.com/qbcore-framework/progressbar.
                           -- qs             - https://github.com/quasar-scripts/progressbar.
                           -- progressBars   - https://forum.cfx.re/t/release-progress-bars-1-0-standalone/526287/4.

--[[ Notifications ]]--
Config.Sounds = true
Config.NotifyType = {success = 'success', info = 'info', error = 'error'}
Config.Notify = 'ox'       -- esx            - https://esx-brasil.github.io/es_extended/client/functions/shownotification/.
                           -- ox             - https://overextended.dev/ox_lib/Modules/Interface/Client/notify#libnotify.
                           -- qb             - https://docs.qbcore.org/qbcore-documentation/qb-core/client-function-reference#qbcore.functions.notify.

Config.HelpNotify = 'ox'   -- esx            - https://esx-brasil.github.io/es_extended/client/functions/showhelpnotification/.
                           -- ox             - https://overextended.dev/ox_lib/Modules/Interface/Client/textui#libshowtextui.
                           -- qb             - https://docs.qbcore.org/qbcore-documentation/qb-core/drawtext.

--[[ Main ]]--
Config.Stashes = {
    tent = {slots = 40, weight = 100000},
    cooler = {slots = 10, weight = 25000},
}
Config.UseBlacklistedZones = true
Config.BlacklistedZones = {
    {coords = vec3(446.92, -982.53, 30.68), radius = 50}, -- Mission Row Police Department.
    {coords = vec3(299.18, -584.84, 43.26), radius = 75}, -- Pillbox Hospital.
}
Config.BeerBarrelItems = {empty = 'emptybeercup', full = 'fullbeercup'}
Config.CampfireHealthRegeneration = {use = true, maxHealth = 180}  -- maxHealth is the max health player is going to be healing to.
Config.ObjectSpawnDistance = 85 -- From what  distance objects will be spawned for each player ?
Config.UseLightItems = true -- Do you want to use items to light the fire ?
Config.LightItems = { -- Items to light the fire with, changeOfBreaking = 10 gives you 10% out of 100% chance that your item will break.
    {item = 'matches', remove = true, amount = 1, changeOfBreaking = 10},
    {item = 'lighter', remove = false, amount = 1, changeOfBreaking = 0},
}
Config.AdminMenuCommand = 'adminobjects'
Config.AdminGroups = {'admin', 'superadmin', 'god'}
Config.MaxPeopleInTent = 2
Config.MaxPeopleShowering = 1
Config.MaxPeopleCooking = 5
Config.Keys = {
    exit = 38, -- [E] Exit chair and tent key.
    openStash = 58, -- [G] Open stash.
    placingObject = {
        place = 38, -- [E] Place object on the ground.
        exit = 348, -- [SCROLLPRESS] Exit placing objects.
        rotateL = 181, -- [SCROLLUP] Rotate position of the object to left side.
        rotateR = 180, -- [SCROLLDOWN] Rotate position of the object to right side.
    }
}

--[[ Campfire ]]--
Config.Campfire = { -- Items which will be displayed in campfire cooking menu.
    {
        label = 'Raw Meat', -- Label of the item
        item = {
            rawIngredients = { -- These items will be removed from your inventory upon starting to cook.
                {item = 'rawmeat', label = 'Raw Meat', amount = 1},
            },
            cookedIngredients = { -- These items will be added to your inventory upon finishing cooking.
                {item = 'cookedmeat', amount = 1},
            },
        },
        props = {raw = 'fivecode_rawmeat', cooked = 'fivecode_cookedmeat'}, -- Props that will be shows on stick while cooking.
        cookTime = 25, -- Cooking time for this item [In seconds].
    },

    {
        label = 'Smores',
        item = {
            rawIngredients = {
                {item = 'smores', label = 'Packaged Smores', amount = 1},
            },
            cookedIngredients = {
                {item = 'cookedsmores', amount = 1},
            },
        },
        props = {raw = 'fivecode_smores', cooked = 'fivecode_cookedsmores'},
        cookTime = 5,
    },
}

Config.CustomObjects = {
    {
        label = 'Example Item',
        item = 'exampleitem',
        prop = 'exampleprop',
        target = 'Interact with this example object',
        distance = 2.5,
        offset = 0.50,
        menu = {
            {
                title = 'Test Label',
                description = 'Test Text',
                icon = 'fas fa-circle-dot',
                event = 'fivecode_camping:testtest',
            },
            {
                title = 'Test Label 2',
                description = 'Test Text 2',
                icon = 'fas fa-circle-dot',
                event = 'fivecode_camping:testEvent2'
            },
        },
    },
}

--[[ Npc Shop ]]--
Config.NpcShop = {
    {
        use = true, -- If false this npc will be disabled.
        coords = vec4(-679.33, 5834.14, 17.31, 133.22), -- Position of the npc.
        npc = {
            ped = 'cs_hunter', -- https://docs.fivem.net/docs/game-references/ped-models/
            anim = 'WORLD_HUMAN_GUARD_STAND', -- https://github.com/Santagain/gtav-scenarios
        },
        blip = {
            use = true, -- If false this blip for this npc will be disabled.
            info = {id = 141, color = 56, size = 0.8},
            title = 'Camping Shop',
        },
        target = {
            label = 'Open Shop',
            icon = 'fas fa-hand', -- https://fontawesome.com/icons
        },
    },
}

Config.ShopItems = {
    {item = 'campfire', label = 'Campfire', icon = 'nui://'..Config.Images..'campfire.png', price = 20},
    {item = 'campingchair', label = 'Camping Char', icon = 'nui://'..Config.Images..'campingchair.png', price = 50},
    {item = 'campingtent', label = 'Camping Tent', icon = 'nui://'..Config.Images..'campingtent.png', price = 125},
    {item = 'campingsleepingbag', label = 'Sleeping Bag', icon = 'nui://'..Config.Images..'campingsleepingbag.png', price = 75},
    {item = 'campingshower', label = 'Camping Shower', icon = 'nui://'..Config.Images..'campingshower.png', price = 250},
    {item = 'campingcooler', label = 'Camping Cooler', icon = 'nui://'..Config.Images..'campingcooler.png', price = 20},
    {item = 'campingbeerbarrel', label = 'Beer Barrel', icon = 'nui://'..Config.Images..'campingbeerbarrel.png', price = 50},
    {item = 'lighter', label = 'Lighter', icon = 'nui://'..Config.Images..'lighter.png', price = 10},
    {item = 'matches', label = 'Matches', icon = 'nui://'..Config.Images..'matches.png', price = 5},
    {item = 'emptybeercup', label = 'Beer Cup', icon = 'nui://'..Config.Images..'emptybeercup.png', price = 2},
    -- You can add any item in this shop.
}

Last updated