Agents can also search and read this documentation through its MCP server.
Config
The config file is located at
shared/config.lua.
Config.UpdateCheck
Checks for a new version when the resource starts and prints the result to the server console.
Config.UpdateCheck = true
Config.Locale
Select the language used by the interface with Config.Locale. The value must match one of the files inside the locales folder (en, tr).
Config.Locale = 'tr'
Note: To add a new language, copy
locales/en.lua, rename it, translate the values and add the new file toshared_scriptsinfxmanifest.lua.
Config.ThemeColor
Customize the interface to any color you want with Config.ThemeColor.
Config.ThemeColor = '#ff0066'
Config.AdminIdentifiers
List of players allowed to open the voucher dashboard and create, edit or delete vouchers.
Config.AdminIdentifiers = {
'steam:110000100000000',
-- 'license:abc1234567890def',
}
Warning: Anyone in this list can create vouchers containing any item from
shared/items.lua. Only add trusted staff members.
Config.Framework
Select the framework your server is running with Config.Framework.
Config.Framework = 'qbcore' -- 'qbcore', 'esx' or 'standalone'
Settings
| Value | Description |
|---|---|
qbcore |
Items are given through QBCore. |
esx |
Items are given through ESX. |
standalone |
No framework is loaded. Items are not given unless you add your own inventory. |
Config.DiscordWebhook
Discord webhook URL used for the voucher logs. Leave it empty to disable the logs.
Config.DiscordWebhook = ''
Logged Actions
| Action | Description |
|---|---|
| Voucher created | Staff member, code, number of winners and the items inside the voucher. |
| Voucher claimed | Player, code, Steam, license and Discord identifiers and the items received. |
Config.ImagePath
Path to the item images of your inventory, used to display the items in the interface.
Warning: The path must end with a trailing slash.
Config.ImagePath = 'nui://qb-inventory/html/images/'
Examples
| Inventory | Path |
|---|---|
qb-inventory |
nui://qb-inventory/html/images/ |
ox_inventory |
nui://ox_inventory/web/images/ |
Config.Commands
These values define the commands used by the script.
Config.Commands = {
CreateVoucher = 'voucher',
ClaimVoucher = 'voucherkey'
}
Settings
| Option | Description |
|---|---|
CreateVoucher |
Command that opens the voucher dashboard. Admins only. |
ClaimVoucher |
Command that opens the menu where players claim a voucher code. |
Config.VoucherItems
List of items that can be added to a voucher. This list is located in shared/items.lua.
Warning: The
namevalue must be the same as the name the item is registered with in your inventory, otherwise the item cannot be given.
Config.VoucherItems = {
{ name = 'weapon_dagger', label = 'Dagger' },
{ name = 'weapon_bat', label = 'Bat' },
{ name = 'weapon_pistol', label = 'Walther P99' },
}
Settings
| Option | Description |
|---|---|
name |
Item name as registered in your inventory. |
label |
Display name shown in the voucher interface. |
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.