Skip to main content

Configuration

This resource is highly customizable and can be configured to suit different server setups. Here are some of the configuration options that you can modify:

You will be able to customise the menu you want to server in Golden Pub! In config.lua you will see Config.Menu table that you can edit the way you want. Indexes should be your item names and you can set the ingredients.
Here starters is the category and inside items you can set meals name, description, price and which ingredients will be used how many and if they will be consumed.
We provided an example menu below.

Config.Menu = {
["starters"] = {
name = "Starters",
items = {
["loadednachos"] = {
name = "Loaded Nachos",
description = "Tortilla chips stacked high with black beans, salsa, pepper-jack cheese, guacamole & sour cream",
price = 9.5,
ingredients = {
["tortillachip"] = {
amount = 4,
consume = true
},
["blackbeans"] = {
amount = 1,
consume = true
},
["salsa"] = {
amount = 1,
consume = true
},
["pepperjackcheese"] = {
amount = 1,
consume = true
},
["guacamole"] = {
amount = 1,
consume = true
},
["sourcream"] = {
amount = 1,
consume = true
}
}
},
}
}
}

When configuring Config.Menu you should also configure Config.MenuIndexes as the way you want them to show up in the menu. This defines the order of the categories.

Config.MenuIndexes = {
'starters',
'burgers',
'hot_drinks',
'drafts',
'importeddrafts'
}

Your choice of libraries (in the config.lua file)

You should configure these variables with the choices of your resources. The example below is for QBox Project.

---@type string | "'PolyZone'" | "'ox_lib'"
Config.ZoneScript = 'ox_lib'
Config.ZoneDebug = false

---@type string | "'qb-target'" | "'ox_target'"
Config.TargetScript = 'ox_target'

---@type string | "'qb-menu'" | "'ox_lib'"
Config.ContextMenuScript = 'ox_lib'

---@type string | "'qb-input'" | "'ox_lib'"
Config.InputScript = 'ox_lib'

---@type string | "'progressbar'" | "'ox_lib'"
Config.ProgressbarScript = 'ox_lib'

---@type string | "'esx'" | "'qb-core'" | "'qbox'"
Config.Framework = 'qbox'