Documentation
  • â„šī¸Information
    • Welcome
    • Before you buy
    • Before you install
  • đŸ“ĻDependencies
    • Apex Library
      • Installation
      • Configuration
  • đŸ“ĻResources
    • đŸ›ī¸Government Jobs
      • Apex Law Enforcement
        • Installation
        • Configuration
        • Features
        • Showcase
    • đŸžī¸Activities
      • Apex Legion Park
        • Installation
        • Configuration
        • Features
        • Showcase
      • Apex Mirror Park
        • Installation
        • Configuration
        • Features
        • Showcase
      • Apex Vespucci Beach
        • Installation
        • Configuration
        • Features
        • Showcase
    • 💀Criminal Activies
      • Apex Cocaine Run
        • Installation
        • Configuration
        • Features
        • Showcase
      • Apex Heroin Run
        • Installation
        • Configuration
        • Features
        • Showcase
      • Apex Meth Run
        • Installation
        • Configuration
        • Features
        • Showcase
      • Apex Weed Run
        • Installation
        • Configuration
        • Features
        • Showcase
    • đŸĸBusinesses
      • đŸĨ˜Restaurants
        • Apex Burgershot
          • Installation
          • Features
          • Showcase
        • Apex Bite
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex CafÊ Coretto
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Cat Cafe
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Cluckin' Bell
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Emerald
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Horny's Burger
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Koi Restaurant
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Noodle Exchange
          • Installation
        • Apex Pearls Seafood
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Pizza This
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Rex Diner
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Rusty Brown
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Snr Buns
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Up 'N' Atom
          • Installation
          • Configuration
          • Features
          • Showcase
      • đŸ•ēNightclubs
        • Apex Bahama Mamas
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Beach Club
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Blackwood Saloon
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Club77
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Malibu Club
          • Installation
        • Apex Matrix
          • Installation
        • Apex Galaxy
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Haute
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Peckerwood
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Tequi-la-la
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Vanilla Unicorn
          • Installation
          • Configuration
          • Features
          • Showcase
        • Apex Yellow Jack
          • Installation
          • Configuration
          • Features
          • Showcase
      • 🎭Other
        • Apex Weapon Manufacturer
          • Installation
          • Configuration
          • Features
          • Showcase
Powered by GitBook
On this page
  • DEPENDENCIES
  • RESOURCE INSTALLATION GUIDE
  1. Resources
  2. Businesses
  3. Restaurants
  4. Apex Rusty Brown

Installation

PreviousApex Rusty BrownNextConfiguration

Last updated 1 year ago

DEPENDENCIES

REQUIRED DEPENDENCIES

Resource
Download

Apex Library

Framework

Target

Menu

Inventory

OPTIONAL DEPENDENCIES

Resource
Download

Mapping

RESOURCE INSTALLATION GUIDE

1) RESOURCE DOWNLOAD

Download your resource from .

2) RESOURCE POSITIONING

You need to make sure that apex_lib is always started before any of our scripts!

ensure apex_lib
ensure [apex] -- or ensure apex_rustybrown

3) ASSET ADDING

  1. Open apex_rustybrown > assets > inventory_images

  2. Copy files from the folder and add them into your inventory image folder

4) ITEM ADDING (QBCORE & ESX)

The first block shows the data, you'll have to put into shared/items.lua in qbcore

The second block shows the data, you'll have to put into the database in esx

--[FOOD INGREDIENTS]--
['sugar'] 		= {['name'] = 'sugar', 			['label'] = 'Sugar', 			['weight'] = 10, ["type"] = "item", ["image"] = 'sugar.png', 			['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Ingredients'},
['cocoa_powder'] 	= {['name'] = 'cocoa_powder', 		['label'] = 'Cocoa Powder', 		['weight'] = 10, ['type'] = 'item', ['image'] = 'cocoa_powder.png',             ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Ingredients'},
['milk'] 		= {['name'] = 'milk', 			['label'] = 'Milk', 			['weight'] = 10, ['type'] = 'item', ['image'] = 'soda.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'},
['flour'] 		= {['name'] = 'flour', 			['label'] = 'Flour', 			['weight'] = 10, ['type'] = 'item', ['image'] = 'flour.png', 			['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Ingredients'},
['egg'] 		= {['name'] = 'egg', 			['label'] = 'Egg', 			['weight'] = 10, ['type'] = 'item', ['image'] = 'eggs.png', 			['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Ingredients'},
['bakingsoda'] 		= {['name'] = 'bakingsoda', 		['label'] = 'Baking Soda', 		['weight'] = 10, ['type'] = 'item', ['image'] = 'bakingsoda.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Ingredients'},
--[FOOD]--
['donut'] 		= {['name'] = 'donut', 			['label'] = 'Donut', 			['weight'] = 30, ['type'] = 'item',  ['image'] = 'donut.png', 			['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Donut'},
-[DRINKS]--
['brewedcoffee'] 	= {['name'] = 'brewedcoffee', 		['label'] = 'Brewed Coffee', 	        ['weight'] = 10, ['type'] = 'item',  ['image'] = 'brewedcoffee.png', 	        ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Brewed Coffee Drink'},
['hotchocolade'] 	= {['name'] = 'hotchocolade', 		['label'] = 'Hot Chocolate', 	        ['weight'] = 30, ['type'] = 'item',  ['image'] = 'hotchocolade.png', 	        ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Hot Chocolate Drink'},
['latte'] 		= {['name'] = 'latte', 			['label'] = 'Latte', 		        ['weight'] = 30, ['type'] = 'item',  ['image'] = 'latte.png', 			['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Latte Drink'},
['matchatea'] 		= {['name'] = 'matchatea', 		['label'] = 'Matcha Tea', 	        ['weight'] = 30, ['type'] = 'item',  ['image'] = 'matchatea.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Matcha Tea Drink'},
['bubbletea'] 		= {['name'] = 'bubbletea', 		['label'] = 'Bubble Tea', 	        ['weight'] = 30, ['type'] = 'item',  ['image'] = 'bubbletea.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Bubble Tea Drink'},
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('sugar', 'Sugar', 10, 0, 1),
('cocoa_powder', 'Cocoa Powder', 10, 0, 1),
('milk', 'Milk', 10, 0, 1),
('butter', 'Butter', 10, 0, 1),
('flour', 'Flour', 10, 0, 1),
('egg', 'Egg', 10, 0, 1),
('bakingsoda', 'Baking Soda', 10, 0, 1),
('donut', 'Donut', 10, 0, 1),
('brewedcoffee', 'Brewed Coffee', 10, 0, 1),
('hotchocolade', 'Hot Chocolate', 10, 0, 1),
('latte', 'Latte', 10, 0, 1),
('matchatea', 'Matcha Tea', 10, 0, 1),
('bubbletea', 'Bubble Tea', 10, 0, 1);

5) JOB ADDING

The first block shows the data, you'll have to put into shared/jobs.lua in qbcore

The second block shows the data, you'll have to put into the database in esx

['rustybrown'] = {
    label = 'Rusty Brown',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Helper',
            payment = 30
        },
        ['1'] = {
            name = 'Delivery',
            payment = 40
        },
        ['2'] = {
            name = 'Cook',
            payment = 50
        },
        ['3'] = {
            name = 'Manager',
            payment = 60,
            isboss = true
        },
    },
},
INSERT INTO `jobs` (name, label) VALUES
('rustybrown', 'Rusty Brown');

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('rustybrown', 0, 'helper', 'Helper', 30, '{}', '{}'),
('rustybrown', 1, 'delivery', 'Delivery', 40, '{}', '{}'),
('rustybrown', 2, 'cook', 'Cook', 60, '{}', '{}'),
('rustybrown', 3, 'boss', 'Manager', 60, '{}', '{}');

6) CONSUMABLES

qb-smallresources/config.lua
Config.ConsumablesDrink = {
    ["brewedcoffee"] = math.random(40, 80),
    ["hotchocolade"] = math.random(40, 80),
    ["latte"] = math.random(40, 80),
    ["matchatea"] = math.random(40, 80),
    ["bubbletea"] = math.random(40, 80),
}

Config.ConsumablesEat = {
    ["donut"] = math.random(80, 100),
}

With jim-consumables, it is a little different, you'll have to find this: Consumables = {} in the config file add the following into it.

If you are not able to get it working, ask jimathy for help

jim-consumables/config.lua
["brewedcoffee"] = {
	emote = "drink", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "drink",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(0,0), thirst = math.random(40, 80),
	},
},
["hotchocolade"] = {
	emote = "drink", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "drink",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(0,0), thirst = math.random(40, 80),
	},
},
["latte"] = {
	emote = "drink", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "drink",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(0,0), thirst = math.random(40, 80),
	},
},
["matchatea"] = {
	emote = "drink", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "drink",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(0,0), thirst = math.random(40, 80),
	},
},
["bubbletea"] = {
	emote = "drink", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "drink",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(0,0), thirst = math.random(40, 80),
	},
},
["donut"] = {
	emote = "eat", time = math.random(5000, 6000), stress = math.random(1, 2), heal = 0, armor = 5, type = "food",
	stats = {
		screen = "", effect = "heal", time = 10000, amount = 2,
		hunger = math.random(80,100), thirst = math.random(0, 0),
	},
},

or

/

& /

Recommend / Whatever you want

The first 2 blocks i'll show how to add the items into both and for qbcore

đŸ“Ļ
đŸĸ
đŸĨ˜
FiveM's Keymaster
qb-smallresources
jim-consumables
Apex Studios Tebex Store
QBCore
ESX
qb-target
ox_target
qb-menu
qb-input
ox_lib
qb-inventory
lj-inventory
ps-inventory
ox_inventory
Quasar Inventory
Map4all