Config

Config = {}

Config.LangUse = "en" -- Choose your language

Config.Framework = 1 -- 1 : QBCore | 2 : ESX

Config.ESX_extended = true -- Set True if you use ESX_extended, just for ESX Framework

--//=================================\\--
--//             QBCore              \\--
--//=================================\\-- 
-- qb-inventory || ps-inventory  || lj-inventory || ox-inventory || quasar || tgiann
--//=================================\\--
--//               ESX               \\--
--//=================================\\-- 
-- esx-inventory|| ox-inventory || quasar || tgiann
Config.Inventory = "qb-inventory" 

Config.ImageLink = "/qb-inventory/html/images" -- The path to your image from the resource exemple for ox_inventory: /ox_inventory/web/images

Config.OxInventoryItems = false -- Only use if Config.Inventory == ox-inventory | true: use ox items | false: use esx or qb items

Config.Webhook = ""

Config.WebhookColors = { -- https://www.spycolor.com/
    ['default'] = 14423100,
    ['blue'] = 255,
    ['red'] = 16711680,
    ['green'] = 65280,
    ['white'] = 16777215,
    ['black'] = 0,
    ['orange'] = 16744192,
    ['yellow'] = 16776960,
    ['pink'] = 16761035,
}

Config.UseUICustomColor = false -- If true Use Config.UIColor | if false, use css

Config.UIColor = { -- RGBA
    ["--background1"] = {23, 23, 23, 1},
    ["--background2"] = {53, 53, 53, 1},
    ["--background3"] = {192, 193, 195, 1},

    ["--color1"] = {200, 35, 51, 1},
    ["--color2"] = {33, 136, 56, 1},
    ["--color3"] = {62, 68, 99, 0.795},
    ["--color4"] = {0, 60, 255, 1},
    ["--color5"] = {224, 168, 0, 1},
    ["--color6"] = {182, 180, 180, 0.25},

}

Config.HighLightItems = true -- When hover items, show red/green border on items to show if its useless or not

Config.UseCustomNotification = false -- true : add your notification system | false : use gta notification

-- Use if 'Config.UseCustomNotification' is set to true
function customNotification(message, type) -- Message : message to notify the player | type : error or success or info
    -- Enter you notification system here
end

Config.UseCustomTextUI = false -- true : add your TextUI system | false : Default

-- Use if 'Config.UseCustomTextUI' is set to true
function customOpenPopUp(key, msg) -- Show Key to press
    
end
-- Use if 'Config.UseCustomTextUI' is set to true
function customClosePopUp() -- Hide Key to press

end

Config.CatRestricted = {}   -- Do not remove

Config.AutoSaveXPMinutes = 5    -- To what interval XP is saved in the database, in minutes

Config.NotifToLowLevel = false                   -- true : When you  craft level 5 item but you are 3, get a notif or not for exemple

Config.LevelXpGrid = { -- xp don't reset every level up
    [1] = 0,	
    [2] = 83,	-- 83	
    [3] = 174,	-- 91	
    [4] = 276,	-- 102	
    [5] = 388,	-- 112	
    [6] = 512,	-- 124	
    [7] = 650,	-- 138	
    [8] = 801,	-- 151	
    [9] = 969,	-- 168	
    [10] =	1154,	-- 185		
    [11] =	1358,	-- 204		
    [12] =	1584,	-- 226		
    [13] =	1833,	-- 249		
    [14] =	2107,	-- 274		
    [15] =	2411,	-- 304		
    [16] =	2746,	-- 335		
    [17] =	3115,	-- 369		
    [18] =	3523,	-- 408		
    [19] =	3973,	-- 450		
    [20] =	4470,	-- 497		
    [21] =	5018,	-- 548		
    [22] =	5624,	-- 606		 
    [23] =	6291,	-- 667		
    [24] =	7028,	-- 737		
    [25] =	7842,	-- 814		
    [26] =	8740,	-- 898	
    [27] =	9730,	-- 990	
    [28] =	10824,	-- 1094		
    [29] =	12031,	-- 1207		
    [30] =	13363,	-- 1332		
    [31] =	14833,	-- 1470		
    [32] =	16456,	-- 1623		
    [33] =	18247,	-- 1791		
    [34] =	20224,	-- 1977		
    [35] =	22406,	-- 2182		
    [36] =	24815,	-- 2409		
    [37] =	27473,	-- 2658		
    [38] =	30408,	-- 2935		
    [39] =	33648,	-- 3240		
    [40] =	37224,	-- 3576		
    [41] =	41171,	-- 3947		
    [42] =	45529,	-- 4358		
    [43] =	50339,	-- 4810		
    [44] =	55649,	-- 5310		
    [45] =	61512,	-- 5863		
    [46] =	67983,	-- 6471		
    [47] =	75127,	-- 7144		
    [48] =	83014,	-- 7887		
    [49] =	91721,	-- 8707	
    [50] =	101333,	-- 9612	
    [51] =	111945,	-- 10612	
    [52] =	123660,	-- 11715	
    [53] =	136594,	-- 12934
    [54] =	150872,	-- 14278
    [55] =	166636,	-- 15764
    [56] =	184040,	-- 17404
    [57] =	203254,	-- 19214
    [58] =	224466,	-- 21212
    [59] =	247886,	-- 23420
    [60] =	273742,	-- 25856
    [61] =	302288,	-- 28546
    [62] =	333804,	-- 31516
    [63] =	368599,	-- 34795
    [64] =	407015,	-- 38416
    [65] =	449428,	-- 42413
    [66] =	496254,	-- 46826
    [67] =	547953,	-- 51699
    [68] =	605032,	-- 57079
    [69] =	668051,	-- 63019
    [70] =	737627,	-- 69576
    [71] =	814445,	-- 76818
    [72] =	899257,	-- 84812
    [73] =	992895,	-- 93638
    [74] =	1096278,	-- 103383
    [75] =	1210421,	-- 114143
    [76] =	1336443,	-- 126022
    [77] =	1475581,	-- 139138
    [78] =	1629200,	-- 153619
    [79] =	1798808,	-- 169608
    [80] =	1986068,	-- 187260
    [81] =	2192818,	-- 206750
    [82] =	2421087,	-- 228269
    [83] =	2673114,	-- 252027
    [84] =	2951373,	-- 278259
    [85] = 3258594,	-- 307221
    [86] = 3597792,	-- 339198
    [87] = 3972294,	-- 374502
    [88] = 4385776,	-- 413482
    [89] = 4842295,	-- 456519
    [90] = 5346332,	-- 504037
    [91] = 5902831,	-- 556499
    [92] = 6517253,	-- 614422
    [93] = 7195629,	-- 678376
    [94] = 7944614,	-- 748985
    [95] = 8771558,	-- 826944
    [96] = 9684577,	-- 913019
    [97] = 10692629,	-- 1008052
    [98] = 11805606,	-- 1112977
    [99] =	13034431,	-- 1228825
}

Config.Workbenches = {
    burgershotKitchen = {           -- Workbench name
        coords = vector4(-1201.03, -898.73, 14.0, 126.02),         -- Crafting station coordinates
        blip = {                                                 -- Optional blips
            sprite = 384,
            color = 26,
            name = "burgershotKitchen",
        },
        jobs = {'burgershot'},                                                  -- Accessible jobs or empty for everyone
        jobsXP = {'burgershot'},                                                -- Jobs that grant XP to the job instead of the player, exclusive to this workbench
        recipes = {'burgershot_bleeder', 'burgershot_patatos', 'burgershot_patatob', 'burgershot_goatwrap', 'burgershot_bigking'},         -- Crafting recipes available to this workbench
        gif = "img/food.gif",                                       -- Central image or GIF
        Anim = {                                                    -- No mandatory
            type = "scenario",                                      -- scenario or animation
            animdict = "",                                          -- only if type == animation
            anim = "PROP_HUMAN_BBQ",                                -- Animation/Scenario
        },
        FailedRecipeResult = {                                      --Result if crafting fails on this workbench and the quantity
        
            name = 'dubious_food',
            qty = 1,
        },
    },
}

Config.Recipe = { -- All your recipe
    {
        Item = 'burgershot_bleeder',        -- Item name
        Jobs = {},                  -- Jobs capable of crafting this item
        Level = 1,                  -- Required crafting level
        Xp = 20,                    -- XP rewarded
        Quantity = 1,               -- Quantity produced
        Time = 5, -- seconds        -- Crafting time
        Ingredients = {             -- All ingredients and their quantities
			['burgershot_meat'] = 1, 
			['burgershot_curly'] = 1, 
			['burgershot_tomato'] = 1, 
			['burgershot_cheddar'] = 1, 
			['burgershot_sauce'] = 1, 
			['burgershot_bread'] = 1, 
        },
    },

    {
        Item = 'burgershot_patatos',        -- Item name
        Jobs = {},                          -- Jobs capable of crafting this item
        Level = 1,                          -- Required crafting level
        Xp = 60,                            -- XP rewarded
        Quantity = 5,                       -- Quantity produced
        Time = 2,                           -- Crafting time in second
        Ingredients = {                     -- All ingredients and their quantities
			['burgershot_smallcardboard'] = 5, 
			['burgershot_smallfrozenpotato'] = 1, 
        },
    },

    {
        Item = 'burgershot_patatob',        -- Item name
        Jobs = {},                  -- Jobs capable of crafting this item
        Level = 2,                  -- Required crafting level
        Xp = 60,                    -- XP rewarded
        Quantity = 5,               -- Quantity produced
        Time = 2, -- seconds        -- Crafting time
        Ingredients = {             -- All ingredients and their quantities
			['burgershot_bigcardboard'] = 5, 
			['burgershot_bigfrozenpotato'] = 1, 
        },
    },
    {
        Item = 'burgershot_bigking',        -- Item name
        Jobs = {},                  -- Jobs capable of crafting this item
        Level = 5,                  -- Required crafting level
        Xp = 60,                    -- XP rewarded
        Quantity = 1,               -- Quantity produced
        Time = 2, -- seconds        -- Crafting time
        Ingredients = {             -- All ingredients and their quantities
			['burgershot_meat'] = 2, 
			['burgershot_curly'] = 1, 
			['burgershot_tomato'] = 2, 
			['burgershot_cheddar'] = 2, 
			['burgershot_sauce'] = 1, 
			['burgershot_bread'] = 1, 
        },
    },
    {
        Item = 'burgershot_goatwrap',        -- Item name
        Jobs = {},                  -- Jobs capable of crafting this item
        Level = 4,                  -- Required crafting level
        Xp = 60,                    -- XP rewarded
        Quantity = 4,               -- Quantity produced
        Time = 2, -- seconds        -- Crafting time
        Ingredients = {             -- All ingredients and their quantities
			['burgershot_frozennuggets'] = 1, 
			['burgershot_lavash'] = 4, 
			['burgershot_tomato'] = 4, 
			['burgershot_cheddar'] = 4, 
			['burgershot_sauce'] = 4, 
			['burgershot_curly'] = 4,  
        },
    },
}

Config.Book = {
    burgershot = { -- Name of the book to open
        title = "BurgerShot",   -- Title to display on the book
        recipes = {'burgershot_bleeder', 'burgershot_patatos', 'burgershot_patatob', 'burgershot_goatwrap', 'burgershot_bigking'}, -- All recipes that this book will show
    },
}

Config.Language = {                         -- Copy/Paste to add more language
    ['en'] = {
        ['lowLevel']               = "You do not have the necessary level to craft this.",
        ['noJob']                  = "You do not have the appropriate job to craft here.",
        ['itemUseless']            = "This item has no use on this workbench.",
        ['notEnoughItem']          = "Not enough ingredients!",
        ['craftInProgress']        = "A craft is already in progress!",
        ['noItem']                 = "You do not have all the required items or some are missing!",
        ['txtUI']                  = "Open Crafting",
    },
}

Last updated