⚙️Configuration
Check the instructions below.
The configuration is handled in config.lua
. Below is an explanation of the key settings:
General Settings
Setting
Description
Default Value
Framework
Specifies the framework used (qb
, esx
).
"qb"
MySQL
Specifies the MySQL library used (oxmysql
, etc.).
"oxmysql"
Example Core Export
The script automatically detects the framework and fetches the core object accordingly.
CoreExport = function()
if Config.Framework == "qb" then
return exports["qb-core"]:GetCoreObject()
elseif Config.Framework == "esx" then
return exports["es_extended"]:getSharedObject()
end
end
Admin Configuration
Setting
Description
Default Value
Admins
List of Discord identifiers with giveaway management permissions.
{"discord:282163851544231946"}
Example Admin List
Admins = {
"discord:282163851544231946", -- Replace with your Discord ID
"discord:123456789012345678"
}
Notifications
The script uses custom notification methods compatible with the chosen framework.
Example Notify Function
Notify = function(msg, title, type)
Framework.Functions.Notify(msg, type)
end
Usage
Hosting a Giveaway
Ensure the host has a Discord identifier listed in the
Admins
configuration.Use the provided commands or menus (if applicable) to start a giveaway.
Last updated