Pizzaria
Installation

Installation

Guide to install reFlow Pizzaria.

Download Resource

To get started first download your asset previously purchased from reflow-store.com (opens in a new tab) login into keymaster and you will find your resource under the option Granted Assets

Installation

Open the downloaded resource zip file and drag the folder into your servers resources folder

Starting Order

In order for the bridge to detect your resources and start correctly, you must start the resources before running the script

-- Any Supported Framework, Inventory, Target
ensure framework
ensure inventory
ensure target
 
 
-- Start Script After
ensure reFlow-Pizzaria

Add Items

qb-core/shared/items.lua
['waterjug'] = {
    ['name'] = "waterjug", 
    ['label'] = "Jug Of Water", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "waterjug.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Water With Great pH Level" 
}, 
['mozzarella'] = {
    ['name'] = "mozzarella", 
    ['label'] = "Mozzarella Cheese", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "mozzarella.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Great on Pizza's" 
}, 
['basil'] = {
    ['name'] = "basil", 
    ['label'] = "Basil", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "basil.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Basil" 
}, 
['garlic'] = {
    ['name'] = "garlic", 
    ['label'] = "Garlic", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "garlic.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Garlic" 
}, 
['yeast'] = {
    ['name'] = "yeast", 
    ['label'] = "Yeast", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "yeast.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Yeast for dough" 
}, 
['flour'] = {
    ['name'] = "flour", 
    ['label'] = "Flour", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "flour.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Flour for baking" 
}, 
['vegetables'] = {
    ['name'] = "vegetables", 
    ['label'] = "Assorted Vegetables", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "vegetables.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Assorted Vegetables" 
}, 
['zuccini'] = {
    ['name'] = "zuccini", 
    ['label'] = "Zuccini", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "zuccini.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Zuccini" 
}, 
['oregano'] = {
    ['name'] = "oregano", 
    ['label'] = "Oregano", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "oregano.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Oregano" 
}, 
['wholeham'] = {
    ['name'] = "wholeham", 
    ['label'] = "Unsliced Ham", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "wholeham.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Whole Ham" 
}, 
['slicedham'] = {
    ['name'] = "slicedham", 
    ['label'] = "Sliced Ham", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "slicedham.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Ham for use with pizza" 
}, 
['mushroom'] = {
    ['name'] = "mushroom", 
    ['label'] = "Mushroom", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "mushroom.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Mushroom for use with pizza" 
}, 
['marinarasauce'] = {
    ['name'] = "marinarasauce", 
    ['label'] = "Marinara Sauce", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "marinarasauce.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Marinara Sauce for use with pizza" 
}, 
['mushroompizza'] = {
    ['name'] = "mushroompizza", 
    ['label'] = "Prosciutto E Funghi", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "mushroompizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Mushroom Pizza" 
}, 
['cheesepizza'] = {
    ['name'] = "cheesepizza", 
    ['label'] = "Cheese Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "cheesepizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Cheese Pizza" 
}, 
['pepperonipizza'] = {
    ['name'] = "pepperonipizza", 
    ['label'] = "Pepperoni Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "pepperonipizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Pepperoni Pizza" 
}, 
['margheritapizza'] = {
    ['name'] = "margheritapizza", 
    ['label'] = "Margherita Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "margheritapizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Margherita Pizza" 
}, 
['marinarapizza'] = {
    ['name'] = "marinarapizza", 
    ['label'] = "Marinara Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "marinarapizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Marinara Pizza" 
}, 
['vegetarinapizza'] = {
    ['name'] = "vegetarinapizza", 
    ['label'] = "Vegetarina Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "vegetarinapizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "A Vegetarian Pizza" 
}, 
['wholepepperoni'] = {
    ['name'] = "wholepepperoni", 
    ['label'] = "Unsliced Pepperoni", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "wholepepperoni.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Unsliced" 
}, 
['slicedpepperoni'] = {
    ['name'] = "slicedpepperoni", 
    ['label'] = "Sliced Pepperoni's", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "slicedpepperoni.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Useful as a pizza topping" 
}, 
['wholetomato'] = {
    ['name'] = "wholetomato", 
    ['label'] = "Tomato", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "wholetomato.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Useful for making sauces" 
}, 
['tomatosauce'] = {
    ['name'] = "tomatosauce", 
    ['label'] = "Tomato Sauce", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "tomatosauce.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "For saucing up some pizza" 
}, 
['rawdough'] = {
    ['name'] = "rawdough", 
    ['label'] = "Raw Pizza Dough", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "rawdough.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Roll to get pizza dough ready" 
}, 
['pizzadough'] = {
    ['name'] = "pizzadough", 
    ['label'] = "Pizza Dough", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "pizzadough.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Ready to top pizza dough" 
}, 
['ecola'] = {
    ['name'] = "ecola", 
    ['label'] = "E Cola", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "ecola.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "E Cola Soda Drink" 
}, 
['sprunk'] = {
    ['name'] = "sprunk", 
    ['label'] = "Sprunk", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "sprunk.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Sprunk Soda Drink" 
}, 
['deliverybox'] = {
    ['name'] = "deliverybox", 
    ['label'] = "Pizza Delivery Box", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "deliverybox.png", 
    ['unique'] = true, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "For Delivering Pizzas" 
}, 
['burnedpizza'] = {
    ['name'] = "burnedpizza", 
    ['label'] = "Burned Pizza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "burnedpizza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Looks like it got a little  to hot" 
}, 
['pibwasser'] = {
    ['name'] = "pibwasser", 
    ['label'] = "Pibwasser", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "pibwasser.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Pibwasser Beer" 
}, 
['ambeer'] = {
    ['name'] = "ambeer", 
    ['label'] = "AM", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "ambeer.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "AM Beer" 
}, 
['tronza'] = {
    ['name'] = "tronza", 
    ['label'] = "Tronza", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "tronza.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Tronza Beer" 
}, 
['patriot'] = {
    ['name'] = "patriot", 
    ['label'] = "Patriot", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "patriot.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "The Taste Of Freedom" 
}, 
['milkcreamer'] = {
    ['name'] = "milkcreamer", 
    ['label'] = "Milk Creamer", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "milkcreamer.png", 
    ['unique'] = false, 
    ['useable'] = false, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Milk Creamer" 
}, 
['blackcoffee'] = {
    ['name'] = "blackcoffee", 
    ['label'] = "Black Coffee", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "blackcoffee.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Black Coffee" 
}, 
['lattecoffee'] = {
    ['name'] = "lattecoffee", 
    ['label'] = "Coffee Latte", 
    ['weight'] = 0, 
    ['type'] = "item", 
    ['image'] = "lattecoffee.png", 
    ['unique'] = false, 
    ['useable'] = true, 
    ['shouldClose'] = true, 
    ['combinable'] = nil, 
    ['description'] = "Coffee Latte" 
}, 

Add Images

qb-inventory/html/images/

Once you've added the items to your inventory, the next step is to drag and drop the images into the path mentioned above. You can find these images in the resource you downloaded from Keymaster inside the images folder.

Add Job

qb-core/shared/jobs.lua
['pizzaria'] = { 
    label = 'Pizzaria', 
    defaultDuty = true, 
    offDutyPay = false,
    grades = {
        ['0'] = { name = 'Cashier', payment = 50 },
        ['1'] = { name = 'Courier', payment = 75 },
        ['2'] = { name = 'Sous Chef', payment = 100 },
        ['3'] = { name = 'Head Chef', payment = 125 },
        ['4'] = { name = 'Owner', isboss = true, payment = 150 },
    },
},