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] BeanMachine

Config

Config = {}

--------------------------
-- Utility
--------------------------
Config.CoreName = "qb-core" -- Core name
Config.Job = "police" -- Job
Config.Target = "qb-target" -- Name of your resource qb-target
Config.Input = "qb-input" -- Name of your resource qb-input
Config.RefreshPhone = "qb-phone:RefreshPhone"
Config.InvLink = "qb-inventory/html/images/"
Config.Bossmenu = "qb-bossmenu:client:OpenMenu"
Config.OpenInv = "inventory:server:OpenInventory" -- Open inventory ( if you use ps-inventory use: "ps-inventory:client:OpenInventory" )
Config.ToggleDuty = "QBCore:ToggleDuty"
Config.CustomSounds = true -- Enable custom sounds? Example: Coffee
Config.TriggerSound = "InteractSound_SV:PlayOnSource"
Config.VolumeSound = 0.5
Config.Stress = math.random(2, 4)
Config.JimPayments = false -- Use jim payments?
Config.NewQB = false -- You are using new qb-inventory update with shops/stashs server side?

--------------------------
-- Blip
--------------------------
Config.Blip = {
	Enable = true,
	Location = vector3(120.43, -1032.02, 29.28),
	Sprite = 266,
	Display = 2,
	Scale = 0.8,
	Colour = 44,
	Name = "BeanMachine",
}

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


--------------------------
-- Billing
--------------------------
Config.Billing = {
	EnableCommand = true,
	Command = "billingbean",
}

--------------------------
-- Language
--------------------------
Language = {
	Targets = {
		Coffee = {
			Icon = "fas fa-box-open",
			Label = "Coffee",
			Location = vector3(124.6, -1036.86, 29.28),
		},
		NaturalJuices = {
			Icon = "fas fa-box-open",
			Label = "Natural Juices",
			Location = vector3(126.06, -1036.57, 29.28),
		},
		Juices = {
			Icon = "fas fa-box-open",
			Label = "Juices",
			Location = vector3(123.57, -1042.66, 29.28),
		},
		WashHandes = {
			Icon = "fa-solid fa-hands",
			Label = "Wash Handes",
			Location = vector3(123.92, -1039.34, 29.28),
		},
		Fruits = {
			Icon = "fas fa-box-open",
			Label = "Fruits",
			Location = vector3(119.99, -1043.67, 29.28),
		},
		AirConditioning = {
			Icon = "fa-solid fa-temperature-low",
			Label = "Manage Temperature",
			Location = vector3(127.97, -1032.52, 29.28),
		},
		Duty ={
			Icon = "fa-solid fa-clipboard",
			Label = "On/off Duty",
			Location = vector3(126.95, -1035.58, 29.28),
		},
		Boss ={
			Icon = "fa-solid fa-clipboard",
			Label = "Boss Menu",
		},
		Billing = {
			Icon = "fa-solid fa-money-bill",
			Label = "Invoices",
			Location = vector3(122.19, -1036.56, 29.28),
		},
		Billing2 = {
			Icon = "fa-solid fa-money-bill",
			Label = "Invoices",
			Location = vector3(120.79, -1040.12, 29.28),
		},
		Donuts = {
			Icon = "fa-solid fa-d",
			Label = "Donuts",
			Location = vector3(121.4, -1038.43, 29.28),
		},
		Chocolate = {
			Icon = "fa-solid fa-d",
			Label = "Chocolate",
			Location = vector3(120.4, -1042.05, 29.28),
		},
		Armario = {
			Icon = "fas fa-box-open",
			Label = "Armário",
			Location = vector3(124.16, -1037.84, 29.28),
		},
		Menu = {
			Icon = "fas fa-bars",
			Label = "Menu",
		}
	},
	ProgressBars = {
		TakeCoffee = {
			Label = "Having a coffee...",
			Time = 7000,
			Animation = "anim@amb@nightclub@mini@drinking@drinking_shots@ped_a@normal",
			SubAnimation = "pour_one",
		},
		Temperature = {
			Label = "Checking the temperature...",
			Time = 4000,
			Animation = "anim@amb@nightclub@mini@drinking@drinking_shots@ped_a@normal",
			SubAnimation = "pour_one",
		},
		RaiseTemperature = {
			Label = "Increasing the temperature...",
			Time = 4000,
			Animation = "anim@amb@nightclub@mini@drinking@drinking_shots@ped_a@normal",
			SubAnimation = "pour_one",
		},
		DecreaseTemperature = {
			Label = "Lowering the temperature...",
			Time = 4000,
			Animation = "anim@amb@nightclub@mini@drinking@drinking_shots@ped_a@normal",
			SubAnimation = "pour_one",
		},
		WashHandes = { 
			Label = "Washing hands...",
			Time = 4000,
			Animation = "mp_arresting",
			SubAnimation = "a_uncuff",
		},
		MilkaOreo = {
			Label = "Picking up a milka oreo...",
			Time = 2000,
			Animation = "anim@amb@clubhouse@bar@drink@idle_a",
			SubAnimation = "idle_a_bartender",
		},
		MilkaCaramelo = {
			Label = "Picking up a caramel milka...",
			Time = 2000,
			Animation = "anim@amb@clubhouse@bar@drink@idle_a",
			SubAnimation = "idle_a_bartender",
		},
		MilkaChocolateBranco = {
			Label = "Picking up a white chocolate milka...",
			Time = 2000,
			Animation = "anim@amb@clubhouse@bar@drink@idle_a",
			SubAnimation = "idle_a_bartender",
		},
	},
	QBMenu = {
		AirConditioning = {
			Header = "🌡️ Temperature",
			CheckAir = "[🌡️] Check Temperature",
			UpAir = "[🔥] Raise Temperature",
			DownAir = "[❄️] Decrease Temperature",
			Close = "[❌] Close",
		},
		Chocolate = {
			Header = "🍫 Chocolates",
			SimpleMilka = "Milka Oreo",
			MilkaCaramel = "Milka Caramel",
			MilkaChocWhite = "Milka Chocolate Branco",
			Close = "[❌] Close",
		},
	},
	QBInput = {
		Billing = {
			Header = "Billing",
			Submit = "Send Invoice",
			ID = "Paypal ID",
			Amount = "Amount",
		}
	},
	Notify = {
		Billing = {
			Send = "Invoice sent successfully.",
			HigherValue = "Must be a valid value above 0.",
	        InvoiceOwn = "You can't bill yourself.",
	        PlayerOffline = "Player unavailable.",
	        NoPermission = "You don't have permissions.",
	        InvoiceReceived = "New invoice received.",
	    },
	    General = {
	        MissingIngredients = "You don't have the ingredients.",
	        Canceled = "Canceled.",
	        WashedHands = "Washed hands!",
		}
	}
}

Config.CraftNaturalJuices = {
    ["sumollaranja"] = { 
        hash = "sumollaranja", 
        label = "Orange Juice",
        materials = {
            [1] = { item = "laranjas",   amount = 1 },
            [2] = { item = "gelo",       amount = 1 },
        }
    },
    ["sumomaca"] = { 
        hash = "sumomaca", 
        label = "Apple Juice",
        materials = {
            [1] = { item = "macas",   	amount = 1 },
            [2] = { item = "gelo",      amount = 1 },
        }
    },
    ["sumolaranjamorango"] = { 
        hash = "sumolaranjamorango", 
        label = "Strawberry Juice with Orange",
        materials = {
            [1] = { item = "morangos",   amount = 1 },
            [2] = { item = "laranjas",   amount = 1 },
            [3] = { item = "gelo",       amount = 1 },
        }
    },
    ["sumomanga"] = { 
        hash = "sumomanga", 
        label = "Mango Juice",
        materials = {
            [1] = { item = "manga",   	amount = 1 },
            [2] = { item = "gelo",      amount = 1 },
        }
    },
}

Config.CraftCoffee = {
    ["coffee"] = { 
        hash = "coffee", 
        label = "Coffee",
        materials = {
            [1] = { item = "sugar",   amount = 1 },
        }
    },
}

Config.Juices = {
    [1] = { name = "cocacolalife", price = 5, amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "cocacolalight", price = 5, amount = 10, info = {}, type = "item", slot = 2 },
    [3] = { name = "cocacolanormal", price = 5, amount = 10, info = {}, type = "item", slot = 3 },
    [4] = { name = "cocacolazero", price = 5, amount = 10, info = {}, type = "item", slot = 4 },
    [5] = { name = "compalfrutosvermelhos", price = 5, amount = 10, info = {}, type = "item", slot = 5 },
    [6] = { name = "compalmaca", price = 5, amount = 10, info = {}, type = "item", slot = 6 },
    [7] = { name = "compalmangalaranja", price = 5, amount = 10, info = {}, type = "item", slot = 7 },
    [8] = { name = "compalpessego", price = 5, amount = 10, info = {}, type = "item", slot = 8 },
    [9] = { name = "icetealimao", price = 5, amount = 10, info = {}, type = "item", slot = 9 },
    [10] = { name = "iceteamanga", price = 5, amount = 10, info = {}, type = "item", slot = 10 },
    [11] = { name = "iceteapessego", price = 5, amount = 10, info = {}, type = "item", slot = 11 },
    [12] = { name = "sumolananas", price = 5, amount = 10, info = {}, type = "item", slot = 12 },
    [13] = { name = "sumollaranja", price = 5, amount = 10, info = {}, type = "item", slot = 13 },
    [14] = { name = "sumollimao", price = 5, amount = 10, info = {}, type = "item", slot = 14 },
    [15] = { name = "sumolmaracuja", price = 5, amount = 10, info = {}, type = "item", slot = 15 },
}

Config.Fruits = {
    [1] = { name = "frutosvermelhos", price = 5, amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "laranjas", price = 5, amount = 10, info = {}, type = "item", slot = 2 },
    [3] = { name = "macas", price = 5, amount = 10, info = {}, type = "item", slot = 3 },
    [4] = { name = "manga", price = 5, amount = 10, info = {}, type = "item", slot = 4 },
    [5] = { name = "morangos", price = 5, amount = 10, info = {}, type = "item", slot = 5 },
}

Config.Donuts = {
    [1] = { name = "donutschocolate", price = 5, amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "donutsmorango", price = 5, amount = 10, info = {}, type = "item", slot = 2 },
    [3] = { name = "donutssimples", price = 5, amount = 10, info = {}, type = "item", slot = 3 },
}

--------------------------
-- Shop
--------------------------
Config.Items = {
    [1] = { name = "sugar", price = 5, amount = 10, info = {}, type = "item", slot = 1, },
    [2] = { name = "water_bottle", price = 5, amount = 10, info = {}, type = "item", slot = 2, },
    [3] = { name = "gelo", price = 5, amount = 10, info = {}, type = "item", slot = 3, },
}
PreviousInstallationNext[QB] Burgershot

Last updated 2 months ago

🍞
🗒️