Installation

Step 1

Make Sure all the dependencies are installed.

Required

ox_lib

ox-target or qb-target

Step 2

Adjust config.lua according to your liking

Make sure to set your target, clothing, billing, inventory script

Step 3

Now execute this query into your server database using heidisql or phpmyadmin.

CREATE TABLE IF NOT EXISTS `pl_bubblegumcafe` (
  `stock` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=armscii8 COLLATE=armscii8_bin;

INSERT INTO `addon_account` (name, label, shared) VALUES
	('society_bubblegum', 'BubbleGum Cafe', 1);

INSERT INTO `datastore` (name, label, shared) VALUES
	('society_bubblegum', 'BubbleGum Cafe', 1);

INSERT INTO `jobs` (name, label,whitelisted) VALUES
	('bubblegum', 'BubbleGum Cafe',1)
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
	('bubblegum',0,'cashier','Cashier',20,'{}','{}'),
	('bubblegum',1,'cook','Cook',40,'{}','{}'),
	('bubblegum',2,'staff','Staff',60,'{}','{}'),
	('bubblegum',3,'manager','Manager',85,'{}','{}'),
	('bubblegum',4,'boss','Owner',100,'{}','{}')
;

Step 4

Add the items into your server

Add the Following Items in ox_inventory/data/items.lua

["bg_apple_filling"] = {
    label = "Apple filling",
    weight = 1,
    stack = true,
    close = true,
},

["bg_apple_turnover"] = {
    label = "Apple Turnover",
    weight = 1,
    stack = true,
    close = true,
},

["bg_basil"] = {
    label = "Fresh Basil",
    weight = 1,
    stack = true,
    close = true,
},

["bg_basil_leaves"] = {
    label = "Basil Leaves",
    weight = 1,
    stack = true,
    close = true,
},

["bg_bbq_chicken"] = {
    label = "BBQ Chicken Pizza",
    weight = 1,
    stack = true,
    close = true,
},

["bg_bbq_sauce"] = {
    label = "Smoky BBQ Sauce",
    weight = 1,
    stack = true,
    close = true,
},

["bg_black_olives"] = {
    label = "Black Olives",
    weight = 1,
    stack = true,
    close = true,
},

["bg_buffalo_sauce"] = {
    label = "Buffalo Sauce",
    weight = 1,
    stack = true,
    close = true,
},

["bg_butter"] = {
    label = "Butter",
    weight = 1,
    stack = true,
    close = true,
},

["bg_Caesar"] = {
    label = "Classic Caesar Salad",
    weight = 1,
    stack = true,
    close = true,
},

["bg_caprese"] = {
    label = "Caprese Salad",
    weight = 1,
    stack = true,
    close = true,
},

["bg_caramel_syrup"] = {
    label = "Caramel Syrup",
    weight = 1,
    stack = true,
    close = true,
},

["bg_chicken_caesar"] = {
    label = "Chicken Caesar Salad",
    weight = 1,
    stack = true,
    close = true,
},

["bg_chocolate_cream"] = {
    label = "Chocolate cream filling",
    weight = 1,
    stack = true,
    close = true,
},

["bg_chocolate_syrup"] = {
    label = "Chocolate Syrup",
    weight = 1,
    stack = true,
    close = true,
},

["bg_cinnamon_roll"] = {
    label = "Cinnamon Roll",
    weight = 1,
    stack = true,
    close = true,
},

["bg_cinnamon_sugar"] = {
    label = "Cinnamon and Sugar Coating",
    weight = 1,
    stack = true,
    close = true,
},

["bg_coffee_beans"] = {
    label = "Coffee Beans",
    weight = 1,
    stack = true,
    close = true,
},

["bg_cold_brew_coffee"] = {
    label = "Cold Brew Coffee",
    weight = 1,
    stack = true,
    close = true,
},

["bg_cream_cheese"] = {
    label = "Cream Cheese",
    weight = 1,
    stack = true,
    close = true,
},

["bg_crispy_bread"] = {
    label = "Crispy Bread",
    weight = 1,
    stack = true,
    close = true,
},

["bg_croissant"] = {
    label = "Croissant",
    weight = 1,
    stack = true,
    close = true,
},

["bg_danish_pastry"] = {
    label = "Danish Pastry",
    weight = 1,
    stack = true,
    close = true,
},

["bg_dough"] = {
    label = "Dough",
    weight = 1,
    stack = true,
    close = true,
},

["bg_eclairs"] = {
    label = "Eclairs",
    weight = 1,
    stack = true,
    close = true,
},

["bg_fresh_garden"] = {
    label = "Garden Fresh Salad",
    weight = 1,
    stack = true,
    close = true,
},

["bg_garlic_butter"] = {
    label = "Garlic Butter",
    weight = 1,
    stack = true,
    close = true,
},

["bg_greek_feta"] = {
    label = "Greek Feta Salad",
    weight = 1,
    stack = true,
    close = true,
},

["bg_hawaiian"] = {
    label = "Hawaiian Paradise Pizza",
    weight = 1,
    stack = true,
    close = true,
},

["bg_ice"] = {
    label = "Ice",
    weight = 1,
    stack = true,
    close = true,
},

["bg_iced_caramel_latte"] = {
    label = "Iced Caramel Latte",
    weight = 1,
    stack = true,
    close = true,
},

["bg_iced_matcha_latte"] = {
    label = "Iced Matcha Latte",
    weight = 1,
    stack = true,
    close = true,
},

["bg_margherita"] = {
    label = "Classic Margherita Pizza",
    weight = 1,
    stack = true,
    close = true,
},

["bg_marinara_sauce"] = {
    label = "Marinara Sauce",
    weight = 1,
    stack = true,
    close = true,
},

["bg_matcha_powder"] = {
    label = "Matcha Powder",
    weight = 1,
    stack = true,
    close = true,
},

["bg_mocha_frappe"] = {
    label = "Mocha Frappe",
    weight = 1,
    stack = true,
    close = true,
},

["bg_mozzarella"] = {
    label = "Melted Mozzarella",
    weight = 1,
    stack = true,
    close = true,
},

["bg_olive_oil"] = {
    label = "Olive Oil",
    weight = 1,
    stack = true,
    close = true,
},

["bg_pastry_cream"] = {
    label = "Pastry Cream",
    weight = 1,
    stack = true,
    close = true,
},

["bg_pepperoni"] = {
    label = "Pepperoni Feast Pizza",
    weight = 1,
    stack = true,
    close = true,
},

["bg_pineapple_chunks"] = {
    label = "Pineapple Chunks",
    weight = 1,
    stack = true,
    close = true,
},

["bg_Supreme"] = {
    label = "Veggie Supreme Pizza",
    weight = 1,
    stack = true,
    close = true,
},

["bg_vanilla_iced_coffee"] = {
    label = "Vanilla Iced Coffee",
    weight = 1,
    stack = true,
    close = true,
},

["bg_vanilla_syrup"] = {
    label = "Vanilla Syrup",
    weight = 1,
    stack = true,
    close = true,
},

["bg_vinegar"] = {
	label = "Vinegar",
	weight = 1,
	stack = true,
	close = true,
},

["bg_parmesan"] = {
	label = "Parmesan Shavings",
	weight = 1,
	stack = true,
	close = true,
},
["bg_kalamata_olives"] = {
	label = "Kalamata Olives",
	weight = 1,
	stack = true,
	close = true,
},
["bg_balsamic_glaze"] = {
	label = "Balsamic Glaze",
	weight = 1,
	stack = true,
	close = true,
},
["bg_garlic_croutons"] = {
	label = "Garlic Croutons",
	weight = 1,
	stack = true,
	close = true,
},
["bg_avocado_slice"] = {
	label = "Avocado Slices",
	weight = 1,
	stack = true,
	close = true,
},

Step 5 - For QBCore Only

Add the Following in qb-core/shared/jobs.lua

['bubblegum'] = {
    label = 'BubbleGum Cafe',
    defaultDuty = true,
    grades = {
        ['0'] = {
            name = 'Cashier',
            payment = 50
        },
        ['1'] = {
            name = 'Cook',
            payment = 75
        },
        ['2'] = {
            name = 'Shift Manager',
            payment = 100
        },
        ['3'] = {
            name = 'Manager',
            payment = 125,
        },
        ['4'] = {
            name = 'Owner',
            payment = 125,
            isboss = true,
        },
    },
},

Step 6 - Consumables

Add in qb-smallresourcse/config.lua


--If using old qb-smallresources
Config.ConsumablesDrink = {
    ['bg_iced_caramel_latte'] = math.random(35, 54),
    ['bg_mocha_frappe'] = math.random(35, 54),
    ['bg_cold_brew_coffee'] = math.random(35, 54),
    ['bg_iced_matcha_latte'] = math.random(35, 54),
    ['bg_vanilla_iced_coffee'] = math.random(35, 54),
}

Config.ConsumablesEat = {
    ['bg_margherita'] = math.random(35, 54),
    ['bg_pepperoni'] = math.random(35, 54),
    ['bg_bbq_chicken'] = math.random(35, 54),
    ['bg_Supreme'] = math.random(35, 54),
    ['bg_hawaiian'] = math.random(35, 54),

    ['bg_Caesar'] = math.random(35, 54),
    ['bg_greek_feta'] = math.random(35, 54),
    ['bg_caprese'] = math.random(35, 54),
    ['bg_chicken_caesar'] = math.random(35, 54),
    ['bg_fresh_garden'] = math.random(35, 54),

    ['bg_croissant'] = math.random(35, 54),
    ['bg_apple_turnover'] = math.random(35, 54),
    ['bg_cinnamon_roll'] = math.random(35, 54),
    ['bg_eclairs'] = math.random(35, 54),
    ['bg_danish_pastry'] = math.random(35, 54),
}

--If using new qb-smallresources
Config.Consumables = {
    eat = {
        ['bg_margherita'] = math.random(35, 54),
        ['bg_pepperoni'] = math.random(35, 54),
        ['bg_bbq_chicken'] = math.random(35, 54),
        ['bg_Supreme'] = math.random(35, 54),
        ['bg_hawaiian'] = math.random(35, 54),

        ['bg_Caesar'] = math.random(35, 54),
        ['bg_greek_feta'] = math.random(35, 54),
        ['bg_caprese'] = math.random(35, 54),
        ['bg_chicken_caesar'] = math.random(35, 54),
        ['bg_fresh_garden'] = math.random(35, 54),

        ['bg_croissant'] = math.random(35, 54),
        ['bg_apple_turnover'] = math.random(35, 54),
        ['bg_cinnamon_roll'] = math.random(35, 54),
        ['bg_eclairs'] = math.random(35, 54),
        ['bg_danish_pastry'] = math.random(35, 54),
    },
    drink = {
        ['bg_iced_caramel_latte'] = math.random(35, 54),
        ['bg_mocha_frappe'] = math.random(35, 54),
        ['bg_cold_brew_coffee'] = math.random(35, 54),
        ['bg_iced_matcha_latte'] = math.random(35, 54),
        ['bg_vanilla_iced_coffee'] = math.random(35, 54),
    },
}

Step 7

Copy all the Images folder and paste it in your inventory Images folder

Step 8 - Optional

To enable discord logs make sure to add your webhook in the server->Log.lua File

Last updated