m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🍞[QB] BeanMachine
        • 🛠️Installation
        • 🗒️Config
      • 🍔[QB] Burgershot
        • 🛠️Installation
        • 🗒️Config
      • 🍈[QB] CoolBeans
        • 🛠️Installation
        • 🗒️Config
      • 🚚[QB] Deliveries
        • 🛠️Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • 🛠️Installation
        • 🗒️Config
      • 🐟[QB] Fishing
        • 🛠️Installation
        • 🗒️Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • 🛠️Installation
        • 🗒️Config
      • 🗝️[QB] GoldRush
        • 🛠️Installation
        • 🗒️Config
      • ⛰️[QB] Hunting
        • 🛠️Installation
        • 🗒️Config
      • 🪵[QB] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[QB] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🛢️[QB] Oil Factory
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • ☕[QB] Pond Coffee
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🚚[QB] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🥃[QB] Vanilla
        • 🛠️Installation
        • 🗒️Config
      • 🛻[QB] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • 🥃[QB] Bahamas
        • 🛠️Installation
        • 📄Config
      • 🔫[QB] Ammunation
        • 🛠️Installation
        • 📄Config
      • 🐟[QB] Pearls
        • 🛠️Installation
        • 📄Config
      • 🔓[QB] Impound
        • 🛠️Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • 🛠️Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • 🏕️[QB] Camping
        • 🛠️Installation
        • 🗒️Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • 🛠️Installation
        • 🗒️Config
      • 🎃[QB] Halloween
        • 🛠️Installation
        • 🗒️Config
      • 📔[QB] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 🗒️Config
        • 🔁Server-Exports
      • 🏘️[QB] Vespucci
        • 🛠️Installation
        • 🗒️Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • 🏖️[QB] Beach Activities
        • 🛠️Installation
        • 🗒️Config
      • 🚘[QB] Car Rental
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • ✈️[QB] Sky Racing
        • 🛠️Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • 🛠️Installation
        • 📄Config
      • 🪨[QB] Grinder
        • 🛠️Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
      • 🏠[QB] Motel
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • 🏚️[QB] Job Center
        • 📄Config
      • 🛠️[QB] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • 🔫[QB] Gangs
        • 🛠️Installation
        • 🗒️Config
      • 🔔[QB] Drug Selling
        • 🗒️Config
      • 🌱[QB] Drugs
        • 🛠️Installation
        • 🗒️Config
      • 🍯[QB] Craft Potion
        • 🛠️Installation
        • 🗒️Config
      • 🅱️[QB] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • 🗒️Config
      • 🏠[QB] House Robbery
        • 🛠️Installation
        • 🗒️Config
      • 💎[QB] Jewelry
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ®️[QB] Mini Robberys
        • 🛠️Installation
        • 🗒️Config
      • 💰[QB] MoneyWash
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🔫[QB] Rob NPC
        • 🛠️Installation
        • 🗒️Config
      • 🏃‍♂️[QB] Runs
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ⛽[QB] Steal Fuel
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🏬[QB] Store Robbery
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🪛[QB] Scrapyard
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 👾[QB] Territories
        • 🛠️Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • 🛠️Installation
          • ℹ️OX-Inventory
          • ℹ️QS-Inventory
        • 🗒️Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🪵[ESX] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • 🛻[ESX] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[ESX] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🎣[ESX] Fishing
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • 🛠️Installation
        • 🗒️Config
      • 📃[ESX] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • 🛠️Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
        • 🏠[ESX] Motel
          • 🛠️Installation
          • 📄Config
          • 🖥️Compatibilities
      • 🛠️[ESX] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • 🛠️Installation
        • 📄Configs
    • Illegal
      • 🔫[ESX] Gangs
        • 🛠️Installation
        • 📄Config
        • ❓Common Questions
      • 🅱️[ESX] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • 🛠️Installation
        • 🗒️Config
      • 🗺️City Guide
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • 🛠️Installation
      • 🔁Reputation
        • 📄Config
        • 🛠️Installation
        • ⁉️Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • 🛠️Installation
      • 🚗Garages
        • 🛠️Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. QBCore
  2. Jobs
  3. [QB] CoolBeans

Config


Config = {}


-- ██╗░░░██╗████████╗██╗██╗░░░░░██╗████████╗██╗░░░██╗
-- ██║░░░██║╚══██╔══╝██║██║░░░░░██║╚══██╔══╝╚██╗░██╔╝
-- ██║░░░██║░░░██║░░░██║██║░░░░░██║░░░██║░░░░╚████╔╝░
-- ██║░░░██║░░░██║░░░██║██║░░░░░██║░░░██║░░░░░╚██╔╝░░
-- ╚██████╔╝░░░██║░░░██║███████╗██║░░░██║░░░░░░██║░░░
-- ░╚═════╝░░░░╚═╝░░░╚═╝╚══════╝╚═╝░░░╚═╝░░░░░░╚═╝░░░

Config.CoreName = "qb-core" -- Core name
Config.Job = "coolbeans" -- Job
Config.BillingType = "qb" -- "qb" | "jim" | "okok"
Config.Target = "qb-target" -- Name of your qb-target resource
Config.Menu = "ox_lib" -- "qb-menu" or "ox_lib"
Config.Progressbar = "qb" -- "qb" or "ox"
Config.Input = "qb-input" -- Name of your qb-input resource
Config.InvLink = "lj-inventory/html/images/" -- Your directory images inventory | ox_inventory/web/images/
Config.Bossmenu = "qb-bossmenu:client:OpenMenu" -- Your trigger to open boss menu
Config.ToggleDuty = "QBCore:ToggleDuty" -- Your trigger to be duty / off duty
Config.EmoteMenu = "rpemotes" -- "dpemotes" or "rpemotes"
Config.Inventory = "qb" -- "qb" or "ox"

Config.Values = { -- Values of eating
    Eeating = math.random(10,20),
    Drinking = math.random(10,20),
}

-- ██████╗░██╗░░░░░██╗██████╗░
-- ██╔══██╗██║░░░░░██║██╔══██╗
-- ██████╦╝██║░░░░░██║██████╔╝
-- ██╔══██╗██║░░░░░██║██╔═══╝░
-- ██████╦╝███████╗██║██║░░░░░
-- ╚═════╝░╚══════╝╚═╝╚═╝░░░░░

Config.Blip = {
	Enable = true,
	Location = vector3(-1202.41, -1132.75, 7.83),
	Sprite = 266,
	Display = 2,
	Scale = 0.8,
	Colour = 14,
	Name = "Cool Beans",
}


-- ░██████╗████████╗░█████╗░░██████╗██╗░░██╗
-- ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║░░██║
-- ╚█████╗░░░░██║░░░███████║╚█████╗░███████║
-- ░╚═══██╗░░░██║░░░██╔══██║░╚═══██╗██╔══██║
-- ██████╔╝░░░██║░░░██║░░██║██████╔╝██║░░██║
-- ╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝╚═════╝░╚═╝░░╚═╝

Config.Stash = {
	NameOfStash = "Cool_Beans_Storage",
	MaxWeighStash = 50000,
	MaxSlotsStash = 50,
}


-- ██████╗░██╗██╗░░░░░██╗░░░░░██╗███╗░░██╗░██████╗░
-- ██╔══██╗██║██║░░░░░██║░░░░░██║████╗░██║██╔════╝░
-- ██████╦╝██║██║░░░░░██║░░░░░██║██╔██╗██║██║░░██╗░
-- ██╔══██╗██║██║░░░░░██║░░░░░██║██║╚████║██║░░╚██╗
-- ██████╦╝██║███████╗███████╗██║██║░╚███║╚██████╔╝
-- ╚═════╝░╚═╝╚══════╝╚══════╝╚═╝╚═╝░░╚══╝░╚═════╝░

Config.Billing = {
	EnableCommand = true,
	Command = "billingbeans",
}


-- ░██████╗██╗░░██╗░█████╗░██████╗░
-- ██╔════╝██║░░██║██╔══██╗██╔══██╗
-- ╚█████╗░███████║██║░░██║██████╔╝
-- ░╚═══██╗██╔══██║██║░░██║██╔═══╝░
-- ██████╔ ██║░░██║╚█████╔╝██║░░░░░
-- ╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░

Config.Items = {
    [1] = { name = "cb_chocolate_cake", price = 0, amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "cb_cake", price = 0, amount = 10, info = {}, type = "item", slot = 2, },
    [3] = { name = "cb_candy", price = 0, amount = 10, info = {}, type = "item", slot = 3, },
    [4] = { name = "cb_candycrunchbar", price = 0, amount = 10, info = {}, type = "item", slot = 4, },
    [5] = { name = "cb_candyheath", price = 0, amount = 10, info = {}, type = "item", slot = 5, },
    [6] = { name = "cb_candyhersheybar", price = 0, amount = 10, info = {}, type = "item", slot = 6, },
    [7] = { name = "cb_candykitkat", price = 0, amount = 10, info = {}, type = "item", slot = 7, },
    [8] = { name = "cb_candymilkyway", price = 0, amount = 10, info = {}, type = "item", slot = 8, },
    [9] = { name = "cb_candynerds", price = 0, amount = 10, info = {}, type = "item", slot = 9, },
    [10] = { name = "cb_candyskittles", price = 0, amount = 10, info = {}, type = "item", slot = 10, },
}

-- ░█████╗░██████╗░░█████╗░███████╗████████╗░██████╗
-- ██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔════╝
-- ██║░░╚═╝██████╔╝███████║█████╗░░░░░██║░░░╚█████╗░
-- ██║░░██╗██╔══██╗██╔══██║██╔══╝░░░░░██║░░░░╚═══██╗
-- ╚█████╔╝██║░░██║██║░░██║██║░░░░░░░░██║░░░██████╔╝
-- ░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░░░░╚═╝░░░╚═════╝░

Config.CraftCupcakes = {
    ["cb_banana_nut"] = { 
        hash = "cb_banana_nut", 
        label = "Banana",
        materials = {
            [1] = { item = "cb_sugar",      amount = 1 },
            [2] = { item = "cb_banana",     amount = 1 },
        }
    },
    ["cb_chocolatecup"] = { 
        hash = "cb_chocolatecup", 
        label = "Chocolate",
        materials = {
            [1] = { item = "cb_chocolate",   amount = 2 },
            [2] = { item = "cb_sugar",       amount = 1 },
        }
    },
    ["cb_strawberrycheese"] = { 
        hash = "cb_strawberrycheese", 
        label = "Strawberry Cheese",
        materials = {
            [1] = { item = "cb_strawberry",  amount = 2 },
            [2] = { item = "cb_sugar",       amount = 1 },
            [3] = { item = "cb_cheese",      amount = 2 },
        }
    },
    ["cb_strawberrycup"] = { 
        hash = "cb_strawberrycup", 
        label = "Strawberry",
        materials = {
            [1] = { item = "cb_sugar",       amount = 1 },
            [2] = { item = "cb_strawberry",  amount = 1 },
        }
    },
    ["cb_vanillacupcakes"] = { 
        hash = "cb_vanillacupcakes", 
        label = "Vanilla",
        materials = {
            [1] = { item = "cb_chocolate",    amount = 2 },
            [2] = { item = "cb_sugar",        amount = 1 },
            [3] = { item = "cb_milk",         amount = 1 },
        }
    },
}


-- Craft non-alcoholic drinks

Config.NonAlcoholic = {
    ["cb_berry_hydrating"] = { 
        hash = "cb_berry_hydrating", 
        label = "Hydrating",
        materials = {
            [1] = { item = "cb_water",      amount = 1 },
            [2] = { item = "cb_strawberry", amount = 1 },
            [3] = { item = "cb_sugar",      amount = 1 },
        }
    },
    ["cb_green_dream"] = { 
        hash = "cb_green_dream", 
        label = "Green Dream",
        materials = {
            [1] = { item = "cb_water",       amount = 1 },
            [2] = { item = "cb_kiwi",        amount = 1 },
            [3] = { item = "cb_sugar",       amount = 1 },
        }
    },
    ["cb_island_breeze"] = { 
        hash = "cb_island_breeze", 
        label = "Island Breeze",
        materials = {
            [1] = { item = "cb_strawberry",  amount = 2 },
            [2] = { item = "cb_sugar",       amount = 1 },
            [3] = { item = "cb_water",       amount = 2 },
        }
    },
    ["cb_just_peachy"] = { 
        hash = "cb_just_peachy", 
        label = "Just Peachy",
        materials = {
            [1] = { item = "cb_water",       amount = 1 },
            [2] = { item = "cb_caramel",     amount = 1 },
            [3] = { item = "cb_sugar",       amount = 1 },
        }
    },
    ["cb_watermelon_dream"] = { 
        hash = "cb_watermelon_dream", 
        label = "Watermelon Dream",
        materials = {
            [1] = { item = "cb_water",    amount = 2 },
            [2] = { item = "cb_sugar",        amount = 1 },
            [3] = { item = "cb_watermelon",         amount = 1 },
        }
    },
}


-- Craft alcoholic drinks

Config.Alcoholic = {
    ["cb_cocktail"] = { 
        hash = "cb_cocktail", 
        label = "Cocktail",
        materials = {
            [1] = { item = "cb_water",      amount = 1 },
            [2] = { item = "cb_strawberry", amount = 1 },
            [3] = { item = "cb_sugar",      amount = 1 },
            [4] = { item = "cb_tequila",     amount = 1 },
        }
    },
    ["cb_coconut_drink"] = { 
        hash = "cb_coconut_drink", 
        label = "Coconut Drink",
        materials = {
            [1] = { item = "cb_water",       amount = 1 },
            [2] = { item = "cb_coconut",     amount = 1 },
            [3] = { item = "cb_sugar",       amount = 1 },
            [4] = { item = "cb_tequila",     amount = 1 },
        }
    },
    ["cb_island_fantasy"] = { 
        hash = "cb_island_fantasy", 
        label = "Island Fantasy",
        materials = {
            [1] = { item = "cb_orange",      amount = 1 },
            [2] = { item = "cb_sugar",       amount = 1 },
            [3] = { item = "cb_water",       amount = 1 },
            [4] = { item = "cb_tequila",     amount = 1 },
        }
    },
    ["cb_kamikaze"] = { 
        hash = "cb_kamikaze", 
        label = "Kamikaze",
        materials = {
            [1] = { item = "cb_water",       amount = 1 },
            [3] = { item = "cb_sugar",       amount = 1 },
            [4] = { item = "cb_tequila",     amount = 1 },
        }
    },
    ["cb_redhot_daquiri"] = { 
        hash = "cb_redhot_daquiri", 
        label = "Red Hot Daquiri",
        materials = {
            [1] = { item = "cb_water",           amount = 1 },
            [2] = { item = "cb_sugar",           amount = 1 },
            [3] = { item = "cb_watermelon",      amount = 1 },
            [4] = { item = "cb_daquiri",         amount = 1 },
        }
    },
}

PreviousInstallationNext[QB] Deliveries

Last updated 1 year ago

🍈
🗒️