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_upnatom` (
  `stock` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=armscii8 COLLATE=armscii8_bin;

INSERT INTO `addon_account` (name, label, shared) VALUES
	('society_upnatom', 'Up n Atom', 1);

INSERT INTO `datastore` (name, label, shared) VALUES
	('society_upnatom', 'Up n Atom', 1);

INSERT INTO `jobs` (name, label,whitelisted) VALUES
	('upnatom', 'Up n Atom',1)
;

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

Step 4

Add the items into your server

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

["ua_bbq_chicken"] = {
    label = "BBQ Chicken Burger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_mustard_beef"] = {
    label = "Mustard Beef Burger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_glazed_turkey"] = {
    label = "Glazed Turkey Burger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_spicy_lamb"] = {
    label = "Spic  Lamb Burger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_sweet_smoky_vegan"] = {
    label = "Sweet & Smoky Vegan Burger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_butter_fries"] = {
    label = "Butter Fries",
    weight = 1,
    stack = true,
    close = true,
},
["ua_spicy_glazed"] = {
    label = "Spicy Glazed Fries",
    weight = 1,
    stack = true,
    close = true,
},
["ua_parmesan_fries"] = {
    label = "Parmesan Fries",
    weight = 1,
    stack = true,
    close = true,
},
["ua_sweet_cajun"] = {
    label = "Sweet Cajun Fries",
    weight = 1,
    stack = true,
    close = true,
},
["ua_garlic_fries"] = {
    label = "Garlic Fries",
    weight = 1,
    stack = true,
    close = true,
},
["ua_lemon_fizz"] = {
    label = "Lemon Fizz",
    weight = 1,
    stack = true,
    close = true,
},
["ua_mint_cooler"] = {
    label = "Mint Cooler",
    weight = 1,
    stack = true,
    close = true,
},
["ua_ginger_punch"] = {
    label = "Ginger Punch",
    weight = 1,
    stack = true,
    close = true,
},
["ua_berry_refresher"] = {
    label = "Berry Refresher",
    weight = 1,
    stack = true,
    close = true,
},
["ua_tropical_splash"] = {
    label = "Tropica Splash",
    weight = 1,
    stack = true,
    close = true,
},
["ua_green_tea"] = {
    label = "Iced Green Tea",
    weight = 1,
    stack = true,
    close = true,
},
["ua_ginger_soda"] = {
    label = "Ginger Soda",
    weight = 1,
    stack = true,
    close = true,
},
["ua_mint_sparkler"] = {
    label = "Mint Sparkler",
    weight = 1,
    stack = true,
    close = true,
},
["ua_berry_soda"] = {
    label = "Berry Soda",
    weight = 1,
    stack = true,
    close = true,
},
["ua_pineapple_pop"] = {
    label = "Pineapple Pop",
    weight = 1,
    stack = true,
    close = true,
},
["ua_bun"] = {
    label = "Burger Bun",
    weight = 1,
    stack = true,
    close = true,
},
["ua_potato"] = {
    label = "Potato",
    weight = 1,
    stack = true,
    close = true,
},
["ua_ice"] = {
    label = "Ice",
    weight = 1,
    stack = true,
    close = true,
},
["ua_lemon"] = {
    label = "Lemon",
    weight = 1,
    stack = true,
    close = true,
},
["ua_bbq_sauce"] = {
    label = "BBQ Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_mustard_sauce"] = {
    label = "Mustard Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_glaze"] = {
    label = "Glaze Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_chili"] = {
    label = "Chili Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_smoked"] = {
    label = "Smoked Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_butter"] = {
    label = "Butter",
    weight = 1,
    stack = true,
    close = true,
},
["ua_parmesan"] = {
    label = "Parmesan Drizzle",
    weight = 1,
    stack = true,
    close = true,
},
["ua_cajun"] = {
    label = "Cajun Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_garlic"] = {
    label = "Garlic Sauce",
    weight = 1,
    stack = true,
    close = true,
},
["ua_lemon_syrup"] = {
    label = "Lemon Syrup",
    weight = 1,
    stack = true,
    close = true,
},
["ua_mint"] = {
    label = "Mint",
    weight = 1,
    stack = true,
    close = true,
},
["ua_ginger"] = {
    label = "Ginger",
    weight = 1,
    stack = true,
    close = true,
},
["ua_berry"] = {
    label = "Berry",
    weight = 1,
    stack = true,
    close = true,
},
["ua_tropical"] = {
    label = "Tropica ",
    weight = 1,
    stack = true,
    close = true,
},
["ua_pineapple"] = {
    label = "Pineapple",
    weight = 1,
    stack = true,
    close = true,
},

Step 5 - For QBCore Only

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

['upnatom'] = {
    label = 'Up n Atom',
    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 = {
    ['ua_green_tea'] = math.random(35, 54),
    ['ua_mint_cooler'] = math.random(35, 54),
    ['ua_ginger_punch'] = math.random(35, 54),
    ['ua_berry_refresher'] = math.random(35, 54),
    ['ua_tropical_splash'] = math.random(35, 54),

    ['ua_lemon_fizz'] = math.random(35, 54),
    ['ua_ginger_soda'] = math.random(35, 54),
    ['ua_mint_sparkler'] = math.random(35, 54),
    ['ua_berry_soda'] = math.random(35, 54),
    ['ua_pineapple_pop'] = math.random(35, 54),
    
}

Config.ConsumablesEat = {
    ['ua_bbq_chicken'] = math.random(35, 54),
    ['ua_mustard_beef'] = math.random(35, 54),
    ['ua_glazed_turkey'] = math.random(35, 54),
    ['ua_spicy_lamb'] = math.random(35, 54),
    ['ua_sweet_smoky_vegan'] = math.random(35, 54),

    ['ua_butter_fries'] = math.random(35, 54),
    ['ua_spicy_glazed'] = math.random(35, 54),
    ['ua_parmesan_fries'] = math.random(35, 54),
    ['ua_sweet_cajun'] = math.random(35, 54),
    ['ua_garlic_fries'] = math.random(35, 54),
}

--If using new qb-smallresources
Config.Consumables = {
    eat = {
        ['ua_bbq_chicken'] = math.random(35, 54),
        ['ua_mustard_beef'] = math.random(35, 54),
        ['ua_glazed_turkey'] = math.random(35, 54),
        ['ua_spicy_lamb'] = math.random(35, 54),
        ['ua_sweet_smoky_vegan'] = math.random(35, 54),

        ['ua_butter_fries'] = math.random(35, 54),
        ['ua_spicy_glazed'] = math.random(35, 54),
        ['ua_parmesan_fries'] = math.random(35, 54),
        ['ua_sweet_cajun'] = math.random(35, 54),
        ['ua_garlic_fries'] = math.random(35, 54),

    },
    drink = {
        ['ua_green_tea'] = math.random(35, 54),
        ['ua_mint_cooler'] = math.random(35, 54),
        ['ua_ginger_punch'] = math.random(35, 54),
        ['ua_berry_refresher'] = math.random(35, 54),
        ['ua_tropical_splash'] = math.random(35, 54),

        ['ua_lemon_fizz'] = math.random(35, 54),
        ['ua_ginger_soda'] = math.random(35, 54),
        ['ua_mint_sparkler'] = math.random(35, 54),
        ['ua_berry_soda'] = math.random(35, 54),
        ['ua_pineapple_pop'] = 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