Apex Studios
StoreDiscordGithubYoutube
  • Introduction
  • Premium Resources
    • πŸ”Apex Burgershot
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 🍏Apex Bite
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • β˜•Apex CafΓ© Coretto
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 🐱Apex Cat Cafe
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • πŸ””Apex Cluckin' Bell
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • πŸ’ŽApex Emerald
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 😈Apex Horny's Burger
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 🐟Apex Koi Restaurant
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 🍜Apex Noodle Exchange
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • 🐚Apex Pearls Seafood
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
    • πŸ•Apex Pizza This
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
  • πŸ¦•Apex Rex Diner
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • 🍩Apex Rusty Brown
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ”Apex Snr Buns
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • βš›οΈApex Up 'N' Atom
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ‘ Apex Bahama Mamas
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ–οΈApex Beach Club
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸͺ΅Apex Blackwood Saloon
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • ♣️Apex Club77
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ₯₯Apex Malibu Club
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ”²Apex Matrix
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • 🌠Apex Galaxy
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
    • 🌠Apex Haute
      • Install Instructions
      • Exports
      • Common Issues
      • Product Page
  • 🐦Apex Peckerwood
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • 🍺Apex Tequi-la-la
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • πŸ¦„Apex Vanilla Unicorn
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • 🟑Apex Yellow Jack
    • Install Instructions
    • Exports
    • Common Issues
    • Product Page
  • Additional Guides
    • Page 1
  • Frequently Asked Question
    • FAQ
Powered by GitBook
On this page
  1. Premium Resources
  2. Apex Emerald

Install Instructions

PreviousApex EmeraldNextExports

Last updated 29 days ago


Follow the steps below to install this resource to your server.

1

Install dependencies

Verify all dependencies below are started before this script in your server.cfg.

Install (or update) all dependencies below:

  1. apex_lib (Included with the purchases - Please check your keymaster)

2

Add items

Open the [install] folder and add the items & their images to your inventory

Are you on esx - Remember to add the .sql to your database.

--[DRINK INGREDIENTS]--
["ice"]             = { ["name"] = "ice",             ["label"] = "Ice",               ["weight"] = 10, ["type"] = "item", ["image"] = "ice.png",             ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["pineapplejuice"]  = { ["name"] = "pineapplejuice",  ["label"] = "Pineapple Juice",   ["weight"] = 10, ["type"] = "item", ["image"] = "pineapplejuice.png",  ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["lemon"]           = { ["name"] = "lemon",           ["label"] = "Lemon",             ["weight"] = 10, ["type"] = "item", ["image"] = "lemon.png",           ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["lime"]            = { ["name"] = "lime",            ["label"] = "Lime",              ["weight"] = 10, ["type"] = "item", ["image"] = "lime.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["sugar"]           = { ["name"] = "sugar",           ["label"] = "Sugar",             ["weight"] = 10, ["type"] = "item", ["image"] = "sugar.png",           ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["mint"]            = { ["name"] = "mint",            ["label"] = "Mint",              ["weight"] = 10, ["type"] = "item", ["image"] = "mint.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["cocomilk"]        = { ["name"] = "cocomilk",        ["label"] = "Coco Milk",         ["weight"] = 10, ["type"] = "item", ["image"] = "cocomilk.png",        ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },

--[DRINKS]--
["bluelagoon"]      = { ["name"] = "bluelagoon",      ["label"] = "Blue Lagoon",       ["weight"] = 30, ["type"] = "item", ["image"] = "bluelagoon.png",      ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["caipirinha"]      = { ["name"] = "caipirinha",      ["label"] = "Caipirinha",        ["weight"] = 30, ["type"] = "item", ["image"] = "caipirinha.png",      ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["pinacolada"]      = { ["name"] = "pinacolada",      ["label"] = "PinΓ£ Colada",       ["weight"] = 30, ["type"] = "item", ["image"] = "pinacolada.png",      ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["maitai"]          = { ["name"] = "maitai",          ["label"] = "Mai Tai",           ["weight"] = 30, ["type"] = "item", ["image"] = "maitai.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["mojito"]          = { ["name"] = "mojito",          ["label"] = "Mojito",            ["weight"] = 30, ["type"] = "item", ["image"] = "mojito.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["sanfrancisco"]    = { ["name"] = "sanfrancisco",    ["label"] = "San Francisco",     ["weight"] = 30, ["type"] = "item", ["image"] = "sanfrancisco.png",    ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["gin"]             = { ["name"] = "gin",             ["label"] = "Gin",               ["weight"] = 30, ["type"] = "item", ["image"] = "gin.png",             ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["rum"]             = { ["name"] = "rum",             ["label"] = "Rum",               ["weight"] = 30, ["type"] = "item", ["image"] = "rum.png",             ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["whiskey"]         = { ["name"] = "whiskey",         ["label"] = "Whiskey",           ["weight"] = 30, ["type"] = "item", ["image"] = "whiskey.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },
["vodka"]           = { ["name"] = "vodka",           ["label"] = "Vodka",             ["weight"] = 30, ["type"] = "item", ["image"] = "vodka.png",           ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Alcoholic Drink" },

--[FOOD INGREDIENTS]--
["onion"]           = { ["name"] = "onion",           ["label"] = "Onion",             ["weight"] = 10, ["type"] = "item", ["image"] = "onion.png",           ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["butter"]          = { ["name"] = "butter",          ["label"] = "Butter",            ["weight"] = 10, ["type"] = "item", ["image"] = "butter.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["tofu"]            = { ["name"] = "tofu",            ["label"] = "Tofu",              ["weight"] = 10, ["type"] = "item", ["image"] = "tofu.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["rice"]            = { ["name"] = "rice",            ["label"] = "Rice",              ["weight"] = 10, ["type"] = "item", ["image"] = "rice.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["chickenfillet"]   = { ["name"] = "chickenfillet",   ["label"] = "Chicken Fillet",    ["weight"] = 10, ["type"] = "item", ["image"] = "chickenfillet.png",  ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["fish"]            = { ["name"] = "fish",            ["label"] = "Fish",              ["weight"] = 10, ["type"] = "item", ["image"] = "fish.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },
["potatos"]         = { ["name"] = "potatos",         ["label"] = "Potatos",           ["weight"] = 10, ["type"] = "item", ["image"] = "potatos.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ingredients" },

--[FOOD]--
["chickennoodlesoup"]= { ["name"] = "chickennoodlesoup",["label"] = "Chicken Noodle Soup",["weight"] = 10, ["type"] = "item", ["image"] = "chickennoodlesoup.png",["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Food" },
["misosoup"]         = { ["name"] = "misosoup",         ["label"] = "Miso Soup",          ["weight"] = 10, ["type"] = "item", ["image"] = "misosoup.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Food" },
["fries"]            = { ["name"] = "fries",            ["label"] = "French Fries",       ["weight"] = 10, ["type"] = "item", ["image"] = "fries.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Food" },
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('ice', 'Ice', 10, 0, 1),
('pineapplejuice', 'Pineapple Juice', 10, 0, 1),
('lemon', 'Lemon', 10, 0, 1),
('lime', 'Lime', 10, 0, 1),
('sugar', 'Sugar', 10, 0, 1),
('mint', 'Mint', 10, 0, 1),
('cocomilk', 'Coco Milk', 10, 0, 1),
('bluelagoon', 'Blue Lagoon', 10, 0, 1),
('caipirinha', 'Caipirinha', 10, 0, 1),
('pinacolada', 'PinΓ£ Colada', 10, 0, 1),
('maitai', 'Mai Tai', 10, 0, 1),
('mojito', 'Mojito', 10, 0, 1),
('sanfrancisco', 'San Francisco', 10, 0, 1),
('gin', 'Gin', 10, 0, 1),
('rum', 'Rum', 10, 0, 1),
('whiskey', 'Whiskey', 10, 0, 1),
('vodka', 'Vodka', 10, 0, 1),
('onion', 'Onion', 10, 0, 1),
('butter', 'Butter', 10, 0, 1),
('tofu', 'Tofu', 10, 0, 1),
('rice', 'Rice', 10, 0, 1),
('chickenfillet', 'Chicken Fillet', 10, 0, 1),
('fish', 'Fish', 10, 0, 1),
('potatos', 'Potatos', 10, 0, 1),
('chickennoodlesoup', 'Chicken Noodle Soup', 10, 0, 1),
('misosoup', 'Miso Soup', 10, 0, 1),
('fries', 'French Fries', 10, 0, 1);
3

Add jobs

Open the [install] folder and add the jobs to your core resource

Are you on esx - Remember to add the .sql to your database.

-- [Install into: qb-core/shared/jobs.lua] --
emerald = {
	label = 'The Emerald Bar',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Helper', payment = 30 },
		['1'] = { name = 'Cook', payment = 40 },
		['2'] = { name = 'Bartender', payment = 50 },
		['3'] = { name = 'Manager', payment = 60 },
		['4'] = { name = 'Boss', isboss = true, payment = 70 },
	},
},
-- [Install into: qbx_core/shared/jobs.lua] --   
['emerald'] = {
        label = 'The Emerald Bar',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            [0] = {
                name = 'Helper',
                payment = 30
            },
            [1] = {
                name = 'Cook',
                payment = 40
            },
            [2] = {
                name = 'Bartender',
                payment = 50
            },
            [3] = {
                name = 'Manager',
                payment = 60
            },
             [4] = {
                name = 'Boss',
                isboss = true,
                bankAuth = true,
                payment = 70
            },
        },
    },
INSERT INTO `jobs` (name, label) VALUES
('emerald', 'The Emerald Bar');

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('emerald', 0, 'helper', 'Helper', 30, '{}', '{}'),
('emerald', 1, 'bartender', 'bartender', 40, '{}', '{}'),
('emerald', 2, 'cook', 'Cook', 50, '{}', '{}'),
('emerald', 3, 'manager', 'Manager', 60, '{}', '{}'),
('emerald', 4, 'boss', 'Boss', 70, '{}', '{}');
4

Restart server

  • Add this script into your main resources directory (usually ../resources)

  • Open server.cfg and add start or ensure apex_bite

  • Restart your server.

Upon completion, do not delete the [install] folder or any .sql files or you will experience errors.

πŸ’Ž
oxmysql
ox_lib