Last updated
Last updated
```lua
Config, Noti, Lang = {}, {}, {}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
-- $$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|\_$$ _|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
-- $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
-- $$ | $$ | $$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$\ $$ | $$ |$$$$$$$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
-- $$ | $$ | $$ |$$ \$$$$ |$$ __| $$ | $$ |\_$$ |$$ | $$ |$$ __$$< $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
-- $$ | $$\ $$ | $$ |$$ |\$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
-- \$$$$$$ | $$$$$$ |$$ | \$$ |$$ | $$$$$$\ \$$$$$$ |\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
-- \______/ \______/ \__| \__|\__| \______| \______/ \______/ \__| \__|\__| \__| \__| \______| \______/ \__| \__|
-- Use "esx" or "qb"
Config.Framework = "qb"
-- If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = "es_extended"
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
-- Command to open the menu
Config.command = "rewards"
-- $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\
-- $$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ _____|\_$$ _|$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\
-- $$$$\ $$ |$$ / $$ | $$ | $$ | $$ | $$ | $$ / \__|$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__|
-- $$ $$\$$ |$$ | $$ | $$ | $$ | $$$$$\ $$ | $$ | $$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\
-- $$ \$$$$ |$$ | $$ | $$ | $$ | $$ __| $$ | $$ | $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\
-- $$ |\$$$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ | $$\ $$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ |
-- $$ | \$$ | $$$$$$ | $$ | $$$$$$\ $$ | $$$$$$\ \$$$$$$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ |
-- \__| \__| \______/ \__| \______|\__| \______| \______/ \__| \__| \__| \______| \______/ \__| \__| \______/
function notifications(notitype, message, time)
-- Change this trigger for your notification system keeping the variables
TriggerEvent('codem-notification', message, time, notitype)
end
-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
-- Notification time:
Noti.time = 5000
-- $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\
-- $$ | $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ _____|
-- $$ | $$ / $$ |$$$$\ $$ |$$ / \__|$$ | $$ |$$ / $$ |$$ / \__|$$ |
-- $$ | $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ | $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\
-- $$ | $$ __$$ |$$ \$$$$ |$$ |\_$$ |$$ | $$ |$$ __$$ |$$ |\_$$ |$$ __|
-- $$ | $$ | $$ |$$ |\$$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |
-- $$$$$$$$\ $$ | $$ |$$ | \$$ |\$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$$$$$$$\
-- \________|\__| \__|\__| \__| \______/ \______/ \__| \__| \______/ \________|
Lang.alreadyDelivered = "You already have that reward"
Lang.received = "You have received your daily reward!"
Lang.futureDay = "You cannot select a future day"
Lang.oneReward = "You can only redeem one reward per day"
-- $$$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\
-- $$ __$$\ $$ _____|$$ | $\ $$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\
-- $$ | $$ |$$ | $$ |$$$\ $$ |$$ / $$ |$$ | $$ |$$ | $$ |$$ / \__|
-- $$$$$$$ |$$$$$\ $$ $$ $$\$$ |$$$$$$$$ |$$$$$$$ |$$ | $$ |\$$$$$$\
-- $$ __$$< $$ __| $$$$ _$$$$ |$$ __$$ |$$ __$$< $$ | $$ | \____$$\
-- $$ | $$ |$$ | $$$ / \$$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ |
-- $$ | $$ |$$$$$$$$\ $$ / \$$ |$$ | $$ |$$ | $$ |$$$$$$$ |\$$$$$$ |
-- \__| \__|\________|\__/ \__|\__| \__|\__| \__|\_______/ \______/
Rewards = {
-- Type options = "item", "money", "vehicle", "weapon"
-- Amount is for money or items
-- Itemname is for item gta name and vehicle model
[1] = {
type = "money",
amount = 500,
itemname = nil,
imageUrl = "./assets/rewards/money.png",
label = "Money"
},
[2] = {
type = "item",
amount = 3,
itemname = "goldbar",
imageUrl = "./assets/rewards/goldbar.png",
label = "Gold Bar"
},
[3] = {
type = "item",
amount = 2,
itemname = "ruby",
imageUrl = "./assets/rewards/ruby.png",
label = "Ruby"
},
[4] = {
type = "item",
amount = 1,
itemname = "mobile",
imageUrl = "./assets/rewards/mobile.png",
label = "Mobile"
},
[5] = {
type = "weapon",
amount = 1,
itemname = "weapon_revolver",
imageUrl = "./assets/rewards/revolver.png",
label = "Revolver"
},
[6] = {
type = "money",
amount = 1000,
itemname = nil,
imageUrl = "./assets/rewards/money.png",
label = "Money"
},
[7] = {
type = "item",
amount = 1,
itemname = "emerald_ring",
imageUrl = "./assets/rewards/emerald_ring.png",
label = "Emerald Ring"
},
[8] = {
type = "item",
amount = 5,
itemname = "bratte",
imageUrl = "./assets/rewards/bratte.png",
label = "Bratte"
},
[9] = {
type = "item",