Installation

Step 1

Rename the configuration file corresponding to your selected map to config.lua. The available configuration files are:

  • gabz_config.lua

  • rflx_config.lua

  • unclejust_config.lua

For example, if you are using the Gabz map, rename gabz_config.lua to config.lua and leave the other files unchanged. Ensure that you rename only the correct configuration file for the map you are using.

Step 2

Make Sure all the dependencies are installed.

Required

ox_lib

ox-target or qb-target

Step 3

Adjust config.lua according to your liking

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

Step 4

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

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

INSERT INTO `addon_account` (name, label, shared) VALUES
	('society_beanmachine', 'BeanMachine', 1);

INSERT INTO `datastore` (name, label, shared) VALUES
	('society_beanmachine', 'BeanMachine', 1);

INSERT INTO `jobs` (name, label,whitelisted) VALUES
	('beanmachine', 'BeanMachine',1)
;

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

Step 5

Add the items into your server

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

["bm_cinnamon_sugar_donut"] = {
    label = "Cinnamon Sugar Donut",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cookiecream_donut"] = {
    label = "Cookie Cream Donut",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cruller_donut"] = {
    label = "Cruller Donut",
    weight = 1,
    stack = true,
    close = true,
},
["bm_chocolate_frosted_donut"] = {
    label = "Chocolate Frosted Donut",
    weight = 1,
    stack = true,
    close = true,
},
["bm_strawberry_iced_donut"] = {
    label = "Strawberry Iced Donut",
    weight = 1,
    stack = true,
    close = true,
},
["bm_americano"] = {
    label = "Americano",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cappuccino"] = {
    label = "Cappuccino",
    weight = 1,
    stack = true,
    close = true,
},
["bm_iced_coffee"] = {
    label = "Iced Coffee",
    weight = 1,
    stack = true,
    close = true,
},
["bm_iced_macchiato"] = {
    label = "Iced Macchiato",
    weight = 1,
    stack = true,
    close = true,
},
["bm_mocha"] = {
    label = "Mocha",
    weight = 1,
    stack = true,
    close = true,
},
["bm_chocolate_chip_cookie"] = {
    label = "Chocolate Chip Cookie",
    weight = 1,
    stack = true,
    close = true,
},
["bm_double_chocolate_cookie"] = {
    label = "Double Chocolate Cookie",
    weight = 1,
    stack = true,
    close = true,
},
["bm_oatmeal_raisin_cookie"] = {
    label = "Oatmeal Raisin Cookie",
    weight = 1,
    stack = true,
    close = true,
},
["bm_peanut_butter_cookie"] = {
    label = "Peanut Butter Cookie",
    weight = 1,
    stack = true,
    close = true,
},
["bm_white_chocolate_cookie"] = {
    label = "White Chocolate Cookie",
    weight = 1,
    stack = true,
    close = true,
},
["bm_blt_sandwich"] = {
    label = "BLT Sandwich",
    weight = 1,
    stack = true,
    close = true,
},
["bm_chicken_pesto_panini_sandwich"] = {
    label = "Chicken Pesto Panini",
    weight = 1,
    stack = true,
    close = true,
},
["bm_classicclub_sandwich"] = {
    label = "Classic Club Sandwich",
    weight = 1,
    stack = true,
    close = true,
},
["bm_grilled_cheese_sandwich"] = {
    label = "Grilled Cheese Sandwich",
    weight = 1,
    stack = true,
    close = true,
},
["bm_tuna_melt_sandwich"] = {
    label = "Tuna Melt Sandwich",
    weight = 1,
    stack = true,
    close = true,
},
["bm_dough"] = {
    label = "Dough",
    weight = 1,
    stack = true,
    close = true,
},
["bm_strawberry_glaze"] = {
    label = "Strawberry Glaze",
    weight = 1,
    stack = true,
    close = true,
},
["bm_chocolate_syrup"] = {
    label = "Chocolate Syrup",
    weight = 1,
    stack = true,
    close = true,
},
["bm_egg_dough"] = {
    label = "Egg Dough",
    weight = 1,
    stack = true,
    close = true,
},
["bm_crushed_cookies"] = {
    label = "Crushed Cookies & Cream",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cinnamon_sugar"] = {
    label = "Cinnamon Sugar",
    weight = 1,
    stack = true,
    close = true,
},
["bm_coffee_beans"] = {
    label = "Coffee Beans",
    weight = 1,
    stack = true,
    close = true,
},
["bm_hot_water"] = {
    label = "Hot Water",
    weight = 1,
    stack = true,
    close = true,
},
["bm_milk"] = {
    label = "Milk",
    weight = 1,
    stack = true,
    close = true,
},
["bm_ice_cubes"] = {
    label = "Ice Cubes",
    weight = 1,
    stack = true,
    close = true,
},
["bm_caramel_drizzle"] = {
    label = "Caramel Drizzle",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cookie_dough"] = {
    label = "Cookie Dough",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cocoa_powder"] = {
    label = "Cocoa Powder",
    weight = 1,
    stack = true,
    close = true,
},
["bm_raisins"] = {
    label = "Raisins",
    weight = 1,
    stack = true,
    close = true,
},
["bm_peanut_butter"] = {
    label = " Peanut Butter",
    weight = 1,
    stack = true,
    close = true,
},
["bm_white_chocolate"] = {
    label = "White Chocolate",
    weight = 1,
    stack = true,
    close = true,
},
["bm_chocolate_chip"] = {
    label = "Chocolate Chip",
    weight = 1,
    stack = true,
    close = true,
},
["bm_bread"] = {
    label = "Bread",
    weight = 1,
    stack = true,
    close = true,
},
["bm_tuna_salad"] = {
    label = "Tuna Salad",
    weight = 1,
    stack = true,
    close = true,
},
["bm_pesto_sauce"] = {
    label = "Pesto Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["bm_ham"] = {
    label = "Ham",
    weight = 1,
    stack = true,
    close = true,
},
["bm_cheese"] = {
    label = "Cheese",
    weight = 1,
    stack = true,
    close = true,
},
["bm_crispy_bacon"] = {
    label = "Crispy Bacon",
    weight = 1,
    stack = true,
    close = true,
},

Step 6 - For QBCore Only

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

['beanmachine'] = {
    label = 'BeanMachine',
    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 7 - Consumables

Add in qb-smallresourcse/config.lua

--If using old qb-smallresources
Config.ConsumablesDrink = {
    ['bm_americano'] = math.random(35, 54),
    ['bm_cappuccino'] = math.random(35, 54),
    ['bm_iced_coffee'] = math.random(35, 54),
    ['bm_iced_macchiato'] = math.random(35, 54),
    ['bm_mocha'] = math.random(35, 54),
}

Config.ConsumablesEat = {
    ['bm_cinnamon_sugar_donut'] = math.random(35, 54),
    ['bm_cookiecream_donut'] = math.random(35, 54),
    ['bm_cruller_donut'] = math.random(35, 54),
    ['bm_chocolate_fosted_donut'] = math.random(35, 54),
    ['bm_strawberry_iced_donut'] = math.random(35, 54),

    ['bm_chocolate_chip_cookie'] = math.random(35, 54),
    ['bm_double_chocolate_cookie'] = math.random(35, 54),
    ['bm_oatmeal_raisin_cookie'] = math.random(35, 54),
    ['bm_peanut_butter_cookie'] = math.random(35, 54),
    ['bm_white_chocolate_cookie'] = math.random(35, 54),

    ['bm_blt_sandwich'] = math.random(35, 54),
    ['bm_chicken_pesto_panini_sandwich'] = math.random(35, 54),
    ['bm_classicclub_sandwich'] = math.random(35, 54),
    ['bm_grilled_cheese_sandwich'] = math.random(35, 54),
    ['bm_tuna_melt_sandwich'] = math.random(35, 54),
}

--If using new qb-smallresources
Config.Consumables = {
    eat = {
        ['bm_cinnamon_sugar_donut'] = math.random(35, 54),
        ['bm_cookiecream_donut'] = math.random(35, 54),
        ['bm_cruller_donut'] = math.random(35, 54),
        ['bm_chocolate_fosted_donut'] = math.random(35, 54),
        ['bm_strawberry_iced_donut'] = math.random(35, 54),

        ['bm_chocolate_chip_cookie'] = math.random(35, 54),
        ['bm_double_chocolate_cookie'] = math.random(35, 54),
        ['bm_oatmeal_raisin_cookie'] = math.random(35, 54),
        ['bm_peanut_butter_cookie'] = math.random(35, 54),
        ['bm_white_chocolate_cookie'] = math.random(35, 54),

        ['bm_blt_sandwich'] = math.random(35, 54),
        ['bm_chicken_pesto_panini_sandwich'] = math.random(35, 54),
        ['bm_classicclub_sandwich'] = math.random(35, 54),
        ['bm_grilled_cheese_sandwich'] = math.random(35, 54),
        ['bm_tuna_melt_sandwich'] = math.random(35, 54),
    },
    drink = {
        ['bm_americano'] = math.random(35, 54),
        ['bm_cappuccino'] = math.random(35, 54),
        ['bm_iced_coffee'] = math.random(35, 54),
        ['bm_iced_macchiato'] = math.random(35, 54),
        ['bm_mocha'] = math.random(35, 54),
    },
}

Step 8

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

Step 9 - Optional

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

Last updated