⚙️Configuration

Detailed explanation of the config file to adapt the resource to your player needs.

The config.lua

Config = {}

-- Framework : 
--                    "qb"  : QBCORE
--                    "esx" : ESX
Config.Framework      = "qb" -- "esx"
Config.Inventory      = "qb" -- "ox"
Config.ZoneDebug      = false
Config.StarterId      = 50000
Config.TimePerOrder   = 300
Config.TimePerDelivery  = 300
Config.unemployed     = "unemployed"
Config.TimeToCookBuns = 15 -- in seconds
Config.TimeToCookPatties = 15 -- in seconds
Config.TimeToCookFries = 15 -- in seconds
Config.AmountOfIngredientsPerChop = math.random(3,5)
Config.EatOrDrinkProgressBar = 3000 -- 3 seconds
Config.RewardPerDelivery = math.random(25,70)
Config.JobForAll = false
Config.UseBlip = true

--::::::::::::::::::::::::: NPC DIALOG ::::::::::::::::::::::::::::::
Config.useNPCDialog = false                                     
-- Only if NPCDialog is set to false                           
Config.NPCs = {
    ["snrbuns"] = {
        model  = "csb_burgerdrug",
        anim   = "CODE_HUMAN_MEDIC_TIME_OF_DEATH",
        coords = vector4(-504.14, -697.66, 32.67, 291.65)
    } ,
}                          
--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Config.Jobs = {
    'snrbuns',
}

Config.Locations = {
    ["snrbuns"] = { -- job name
        ["blip"] = {
            coords = vector3(-508.39, -694.76, 33.59),
            BlipId = 815,
            BlipColor = 1,
            BlipSize = 0.7,
            BlipText = "Snr Buns"
        },
        ["registers"] = {
            [1] = { coords = vector3(-508.01, -694.43, 33.70), Order = {}},
            [2] = { coords = vector3(-508.07, -695.88, 33.70), Order = {}},
            [3] = { coords = vector3(-508.06, -697.48, 33.70), Order = {}},
        },
        ["payment"] = {
            [1] = { coords = vector3(-508.39, -694.76, 33.59)},
            [2] = { coords = vector3(-508.38, -696.24, 33.58)},
            [3] = { coords = vector3(-508.14, -697.92, 33.58)},
        },
        ["orders"] = {
            [1] = { coords = vector3(-506.82, -691.55, 33.7)},
        },
        ["storage"] = {
            [1] = { coords = vector3(-507.72, -686.48, 33.90)}, 
        },
        -- Buns
        ["toastbuns"] = {
            [1] = { coords = vector3(-504.18, -686.12, 33.50)}
        },
        ["buns"] = {
            [1] = { coords = vector3(-504.35, -686.58, 33.59), onfire = false, empty = true},
            [2] = { coords = vector3(-504.53, -686.49, 33.59), onfire = false, empty = true},
            [3] = { coords = vector3(-504.68, -686.60, 33.59), onfire = false, empty = true},
            [4] = { coords = vector3(-504.85, -686.48, 33.59), onfire = false, empty = true}
        },
        ["bunspanel"] = {
            coords = vector3(-504.45,-687.91, 33.60) , prop = nil
        },
        -- Patties
        ["cookpatty"] = {
            [1] = { coords = vector3(-504.16, -684.58, 33.55)}
        },
        ["patties"] = {
            [1] = { coords_r = vector3(-504.46, -685.37, 33.58), coords_c = vector3(-504.86, -685.43, 33.72), onfire = false, empty = true, prop = nil},
            [2] = { coords_r = vector3(-504.46, -685.15, 33.58), coords_c = vector3(-504.85, -685.20, 33.72), onfire = false, empty = true, prop = nil},
            [3] = { coords_r = vector3(-504.45, -684.97, 33.58), coords_c = vector3(-504.84, -685.00, 33.72), onfire = false, empty = true, prop = nil},
            [4] = { coords_r = vector3(-504.43, -684.74, 33.58), coords_c = vector3(-504.84, -684.79, 33.72), onfire = false, empty = true, prop = nil},
            [5] = { coords_r = vector3(-504.43, -684.55, 33.58), coords_c = vector3(-504.81, -684.57, 33.72), onfire = false, empty = true, prop = nil},
            [6] = { coords_r = vector3(-504.45, -684.35, 33.58), coords_c = vector3(-504.84, -684.35, 33.72), onfire = false, empty = true, prop = nil},
            [7] = { coords_r = vector3(-504.45, -684.14, 33.58), coords_c = vector3(-504.82, -684.16, 33.72), onfire = false, empty = true, prop = nil},
            [8] = { coords_r = vector3(-504.43, -683.93, 33.58), coords_c = vector3(-504.83, -683.93, 33.72), onfire = false, empty = true, prop = nil},
            [9] = { coords_r = vector3(-504.45, -683.75, 33.58), coords_c = vector3(-504.82, -683.74, 33.72), onfire = false, empty = true, prop = nil},
        },
        -- fries
        ["cookfries"] = {
            [1] = { coords = vector3(-505.86, -686.43, 33.46)}
        },
        ["fries"] = {
            [1] = { coords_r = vector3(-505.45, -687.25, 33.30), coords_c = vector3(-505.40, -687.25, 33.50), empty = true},
            [2] = { coords_r = vector3(-505.45, -686.87, 33.30), coords_c = vector3(-505.40, -686.87, 33.50), empty = true},
            [3] = { coords_r = vector3(-505.45, -686.54, 33.30), coords_c = vector3(-505.40, -686.54, 33.50), empty = true},
            [4] = { coords_r = vector3(-505.45, -686.16, 33.30), coords_c = vector3(-505.40, -686.16, 33.50), empty = true},
        },
        ["friespanel"] = {
            coords = vector3(-505.65, -685.65, 33.60), prop = nil
        },
        -- chop ingredients
        ["chop"] = {
            [1] = { coords = vector3(-502.26, -685.54, 33.57), pedcoords = vector4(-502.79, -685.58, 32.67, 272.01)},
            [2] = { coords = vector3(-502.23, -682.85, 33.57), pedcoords = vector4(-502.78, -683.01, 32.67, 283.88)},
        },
        -- plate
        ["washdishes"] = {    
            [1] = { coords = vector3(-506.06, -680.91, 33.55), pedcoords = vector4(-505.95, -681.26, 32.67, 0.35), empty = true},
        },
        ["plates"] = {
            [1] = { coords = vector3(-506.68, -680.59, 33.58), empty = true, prop = nil},
            [2] = { coords = vector3(-506.68, -680.59, 33.60), empty = true, prop = nil}, 
            [3] = { coords = vector3(-506.68, -680.59, 33.62), empty = true, prop = nil},
            [4] = { coords = vector3(-506.68, -680.59, 33.64), empty = true, prop = nil},
            [5] = { coords = vector3(-506.68, -680.59, 33.66), empty = true, prop = nil},
            [6] = { coords = vector3(-506.68, -680.59, 33.68), empty = true, prop = nil},
        },
        ["build"] ={
            [1] = {coords = vector3(-505.28, -688.08, 32.62), pedcoords = vector4(-505.17, -688.64, 32.67, 8.21) , dependsOn = {"bun", "patty"}}
        },
        ["buildorder"] = {
            [1]     = {id = "bun",      decrease = true, coords = vector3(-505.28, -688.08, 33.62),  always = true,  model = "prop_burger_bun_bottom", text = "Placing down bun..."},
            [2]     = {id = "patty",    decrease = true, coords = vector3(-505.28, -688.08, 33.62),  always = true,  model = "prop_burger_patty_c", text = "Placing down patty..."}, 
            [3]     = {id = "Cheese",   decrease = true, coords = vector3(-505.28, -688.08, 33.64),  always = false, model = "prop_burger_cheese_s", text = "Placing down cheese..."},
            [4]     = {id = "Tomato",   decrease = true, coords = vector3(-505.28, -688.08, 33.643), always = false, model = "prop_burger_tomato_s", text = "Placing down tomato..."},
            [5]     = {id = "Lettuce",  decrease = true, coords = vector3(-505.28, -688.08, 33.653), always = false, model = "prop_burger_lettuce_s", text = "Placing down lettuce..."},
            [6]     = {id = "Onion",    decrease = true, coords = vector3(-505.28, -688.08, 33.656), always = false, model = "prop_burger_onion_s", text = "Placing down onion..."},
            [7]     = {id = "Pickle",   decrease = true, coords = vector3(-505.28, -688.08, 33.663), always = false, model = "prop_burger_pickle_s", text = "Placing down pickle..."},
            [8]     = {id = "bun",      decrease = false, coords = vector3(-505.28, -688.08, 33.668), always = true,  model = "prop_burger_bun_c", text = "Placing down bun..."},
            [9]     = {id = "wrapped",  decrease = false, coords = vector3(-505.28, -688.08, 33.60),  always = true,  model = "prop_food_bs_burg1", text = "Wrapping up burger..."},
        },
        ["scopefries"] ={
            [1] = {coords = vector3(-505.46, -685.52, 33.55), pedcoords = vector4(-506.2, -685.55, 32.67, 276.34) , dependsOn = {"fries"}}
        },
        ["drinks"] ={
            [1] = {coords = vector3(-505.24, -697.91, 33.97), pedcoords = vector4(-505.66, -697.88, 32.67, 279.26) , dependsOn = {}},
            [2] = {coords = vector3(-505.83, -698.45, 33.91), pedcoords = vector4(-505.81, -698.05, 32.67, 187.26) , dependsOn = {}}
        },
        ["cupLocations"] ={
            [1] = {
                ["Sprunk"]          = { coords = vector3 (-505.23, -697.57, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["eCola"]           = { coords = vector3 (-505.23, -698.11, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["eCola Light"]     = { coords = vector3 (-505.24, -697.70, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["Orang-O-tang"]    = { coords = vector3 (-505.23, -697.97, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["Ice"]             = { coords = vector3 (-505.23, -697.84, 33.66)},
                ["Cover"]           = { coords = vector3 (-505.35, -697.84, 33.58)},
            },
            [2] = {
                ["Sprunk"]          = { coords = vector3 (-505.51, -698.46, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["eCola"]           = { coords = vector3 (-506.05, -698.47, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["eCola Light"]     = { coords = vector3 (-505.63, -698.47, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["Orang-O-tang"]    = { coords = vector3 (-505.91, -698.48, 33.66),  modelempty = "prop_plastic_cup_02", modelfull = "prop_cs_bs_cup"},
                ["Ice"]             = { coords = vector3 (-505.77, -698.48, 33.66)},
                ["Cover"]           = { coords = vector3 (-505.78, -698.38, 33.58)},
            },
        },
    }
}

Config.Counter = {
    -- ALWAYS FIRST TWO ENABLE AND DISABLE THE TARGET FOR BUILDING THE BURGER/SANDWICH...
    -- ::::::::::::::::::::::: KEEP ALWAYS THIS ORDER PLEASE ::::::::::::::::::::::::::::
    ["snrbuns"] = { 
        ["bun"]     = 0,       -- THIS ONE WILL ENABLE OR DISABLE THE TARGET FOR BUILDING THE BURGER/SANDWICH...
        ["patty"]   = 0,     -- THIS ONE WILL ENABLE OR DISABLE THE TARGET FOR BUILDING THE BURGER/SANDWICH...
        ["fries"]   = 0,     -- THIS ONE WILL ENABLE OR DISABLE THE TARGET FOR THE FRIES SCOOP
        ["Onion"]   = 0,
        ["Cheese"]  = 0,
        ["Tomato"]  = 0,
        ["Lettuce"] = 0,
        ["Pickle"]  = 0,
    }   
}

Config.Food = {
    ["snrbuns"] = { -- job name
        ["Burger"]          = { price = 12.00, emojis = "🍔" , item = "zatburger",      hunger = 30,    thirst = 2},
        ["Sprunk"]          = { price = 7.00, emojis = "🥤"  , item = "zatsprunk",      hunger = 2,     thirst = 10},
        ["eCola"]           = { price = 7.00, emojis = "🥤"  , item = "zatecola",       hunger = 2,     thirst = 10},
        ["eCola Light"]     = { price = 7.00, emojis = "🥤"  , item = "zatecolalight",  hunger = 2,     thirst = 10},
        ["Orang-O-tang"]    = { price = 7.00, emojis = "🥤"  , item = "zatorangotang",  hunger = 2,     thirst = 10},
        ["Fries"]           = { price = 3.00, emojis = "🍟"  , item = "zatfries",       hunger = 2,     thirst = 10},
    },
}

Config.Ingredients = {
    ["snrbuns"] = { -- job name
        ['Lettuce'] = {model = "prop_burger_lettuce"},
        ['Tomato']  = {model = "prop_burger_tomato" },
        ['Onion']   = {model = "prop_burger_onion"  },
        ['Cheese']  = {model = "prop_burger_cheese" },
        ['Pickle']  = {model = "prop_burger_pickle" },
    }
}


Config.OrderList = {
    ["snrbuns"] = { -- job name
        ["Burger"] = {
            {id = "Lettuce",    checked = true,     emojis = "🥬"    , extra = 0.25 , hunger = 2,    thirst = 0},
            {id = "Tomato", 	checked = true,     emojis = "🍅"    , extra = 0.25 , hunger = 2,    thirst = 0},
            {id = "Onion", 	    checked = true,     emojis = "🧅"    , extra = 0.25 , hunger = 2,    thirst = 0},
            {id = "Cheese", 	checked = true,     emojis = "🧀"    , extra = 0.25 , hunger = 2,    thirst = 0},
            {id = "Pickle", 	checked = true,     emojis = "🥒"    , extra = 0.25 , hunger = 2,    thirst = 0},
        },
        ["Sprunk"] ={
            {id = "Ice", 	    checked = true,     emojis = "🧊"    , extra = 0.25 , hunger = 0,    thirst = 2},
        },
        ["eCola"] = {
            {id = "Ice", 	    checked = true,     emojis = "🧊"    , extra = 0.25, hunger = 0,    thirst = 2},
        },
        ["eCola Light"] = {
            {id = "Ice", 	    checked = true,     emojis = "🧊"    , extra = 0.25, hunger = 0,    thirst = 2},
        },
        ["Orang-O-tang"] = {
            {id = "Ice", 	    checked = true,     emojis = "🧊"     , extra = 0.25, hunger = 0,    thirst = 2},
        },
        ["Fries"] = {
            {id = "Small", 	    checked = true,     emojis = "🍟"    , extra = 0.00, hunger = 0,    thirst = 0},
            {id = "Big", 	    checked = false,    emojis = "🍟"    , extra = 0.25, hunger = 2,    thirst = 0},
        },
    }
}

Config.Outfits = {
    ["snrbuns"] = {
        ["male"] = {
            ["tshirt"] = {
                id = 15,
                tx = 0
            },
            ["torso"] = {
                id = 382,
                tx = 0
            },
            ["pants"] = {
                id = 24,
                tx = 0
            },
            ["arms"] = {
                id = 85,
                tx = 1
            },
        },
        ["female"] = {
            ["tshirt"] = {
                id = 15,
                tx = 0
            },
            ["torso"] = {
                id = 382,
                tx = 0
            },
            ["pants"] = {
                id = 24,
                tx = 0
            },
            ["arms"] = {
                id = 85,
                tx = 1
            },
        },   
    }
}

Config.Delivery = {
    ["snrbuns"] = {
        coords  = vector4(-493.28, -674.23, 32.92, 279.49),
        houses = {
            [1] = 	{ coords = vector4(-913.33, 108.32, 55.51, 96.29),      model = "a_f_m_soucent_01",         reward = math.random(2,5)},
            [2] = 	{ coords = vector4(-971.46, 122.17, 57.05, 307.12),     model = "a_f_y_femaleagent",        reward = math.random(2,5)},
            [3] = 	{ coords = vector4(-998.15, 158.22, 62.32, 202.77),     model = "a_m_m_eastsa_02",          reward = math.random(7,10)},
            [4] =	{ coords = vector4(-949.18, 196.74, 67.39, 166.82),     model = "a_m_m_salton_02",          reward = math.random(2,5)},
            [5] = 	{ coords = vector4(-1052.16, 432.29, 77.06, 185.5),     model = "a_m_y_beach_01",           reward = math.random(2,5)},
            [6] = 	{ coords = vector4(-765.71, 650.41, 145.7, 311.75),     model = "a_m_y_downtown_01",        reward = math.random(7,10)},	
            [7] = 	{ coords = vector4(-6.56, 409.02, 120.29, 86.67),       model = "a_m_y_indian_01",          reward = math.random(2,5)},
            [8] = 	{ coords = vector4(143.42, -280.34, 50.45, 78.87),      model = "a_m_y_stlat_01",           reward = math.random(2,5)},
            [9] = 	{ coords = vector4(-1179.54, -929.06, 6.99, 135.36),    model = "a_m_y_vindouche_01",       reward = math.random(2,5)},
            [10] = 	{ coords = vector4(-812.9, -980.81, 14.15, 135.36),     model = "a_m_y_salton_01",          reward = math.random(2,5)},
        },
        vehicle = "faggio2"
    }
}

Config.DeliveryItems = {
    ["snrbuns"] = {
        [1] = {
            {
                foodList = {
                    {
                        name            = "Burger",
                        ingredients     = "🥬🍅🧅🧀🥒",
                        ingredientIds   = {"Lettuce", "Tomato", "Onion", "Cheese", "Pickle"},
                        price           = 13.25
                    },
                    {
                        name            = "Fries",
                        ingredients     = "🍟",
                        ingredientIds   = {"Big"},
                        price           = 7.25
                    },
                    {
                        name            = "Sprunk",
                        ingredients     = "🧊",
                        ingredientIds   = {"Ice"},
                        price           = 3.25
                    },
                }
            }
        },
        [2] = {
            {
                foodList = {
                    {
                        name            = "Burger",
                        ingredients     = "🥬🍅🥒",
                        ingredientIds   = {"Lettuce", "Tomato", "Pickle"},
                        price           = 13.25
                    },
                    {
                        name            = "Fries",
                        ingredients     = "🍟",
                        ingredientIds   = {"Big"},
                        price           = 7.25
                    },
                    {
                        name            = "Orang-O-tang",
                        ingredients     = "🧊",
                        ingredientIds   = {"Ice"},
                        price           = 3.25
                    },
                }
            }
        },
        [3] = {
            {
                foodList = {
                    {
                        name            = "Burger",
                        ingredients     = "🥬🧅🧀🥒",
                        ingredientIds   = {"Lettuce", "Onion", "Cheese", "Pickle"},
                        price           = 13.25
                    },
                    {
                        name            = "Fries",
                        ingredients     = "🍟",
                        ingredientIds   = {"Big"},
                        price           = 7.25
                    },
                    {
                        name            = "eCola",
                        ingredients     = "🧊",
                        ingredientIds   = {"Ice"},
                        price           = 3.25
                    },
                }
            }
        },
    } 
}

Last updated