Config settings

--[[
    ⚠️ Support available on my discord ⚠️
    https://discord.gg/kDjjUbWavx
]]

Config = {}
Config.Debug = false -- Set to true if you want to see debug messages
Config.VersionCheck = true -- Set to false if you don't want console notifications when update is available

Config.Framework = "qb"
--[[
    Supported Frameworks:
        • esx | https://github.com/esx-framework/esx-legacy
        • qb | https://github.com/qbcore-framework/qb-core
]]

Config.FrameworkEvents = { -- Change these events if you changed their name in your framework script
    esx = { 
        resource_name = 'es_extended',
        main = 'esx:getSharedObject',
        load = 'esx:playerLoaded',
        job = 'esx:setJob'
    },
    qbcore = { 
        resource_name = 'qb-core',
        main = 'QBCore:GetObject',
        load = 'QBCore:Client:OnPlayerLoaded',
        job = 'QBCore:Client:OnJobUpdate',
        gang = 'QBCore:Client:OnGangUpdate',
    }
}

Config.Notifications = "qb" -- Leave empty and edit extra/notify.lua if you want to use other notifications
--[[
    Supported Notifications:
        • esx
        • qb
        • okokNotify
        • pNotify
        • ps-ui
]]

Config.ImageSource = "nui://qb-inventory/html/images/" -- Location of items images - All itemName from Config.Days should be available in this folder so the script can take their photos

Config.EnableCommand = true -- Whether command should be available to open daily rewards menu
Config.CommandName = "daily" -- Name of the command to open daily rewards menu. You can also use client side export exports['coachDaily']:openDaily() in any of your scripts.
Config.ResetAfterInactivity = false -- Whether daily rewards should be reseted when player missed to claim it one day. If set to false rewards will be reseted only when player claimed last day reward
Config.AfterMidnight = true -- Whether player can claim next reward just after midnight. If set to false then player will be able to claim next reward exactly after 24 hours since claiming last reward

Config.Days = {
    [1] = {
        itemName = 'money', -- spawn name of item
        imgName = 'money', -- png name from Config.ImageSource
        itemLabel = 'Cash 15.000$', -- Label 
        amount = 15000, -- Amount
        itemType = 'cash', -- 'cash', 'item', 'account', 'special'
    },
    [2] = {
        itemName = 'weapon_pistol',
        imgName = 'weapon_pistol',
        itemLabel = 'Pistol',
        amount = 1,
        itemType = 'item',
    },
    [3] = {
        itemName = 'black_money',
        imgName = 'black_money',
        itemLabel = 'Black Money 20.000$',
        amount = 20000,
        itemType = 'account',
    },
    [4] = {
        itemName = 'dildoo',
        imgName = 'dildoo',
        itemLabel = 'Dildo (1x)',
        amount = 1,
        itemType = 'item',
    },
    [5] = {
        itemName = 'ammo',
        imgName = 'ammo',
        itemLabel = 'Pistol ammo (100x)',
        amount = 100,
        itemType = 'item',
    },
    [6] = {
        itemName = 'gopro',
        imgName = 'gopro',
        itemLabel = 'GoPro (1x)',
        amount = 1,
        itemType = 'item',
    },
    [7] = {
        itemName = 'kartalspd',
        imgName = 'kartalspd',
        itemLabel = 'Weird card (1x)',
        amount = 1,
        itemType = 'item',
    },
    [8] = {
        itemName = 'adder',
        imgName = 'walizka',
        itemLabel = 'Truffade Adder',
        amount = 1,
        itemType = 'special', -- special reward logic can be customized in extra/vip_s.lua and extra/vip_c.lua
    },
    [9] = { -- this is a scheme for random item with different % chances
        itemName = { -- sum of 'chance' of all items has to be 100 (50 + 25 + 25 = 100). You can add as much items as you want but keep the sum of chances 100.
            {itemName = 'ammo', itemLabel = 'Pistol ammo (100x)', amount = 5, chance = 50, itemType = 'item'},
            {itemName = 'weapon_pistol', itemLabel = 'Pistol', amount = 1, chance = 25, itemType = 'item'},
            {itemName = 'money', itemLabel = 'Cash (15.000$)', amount = 15000, chance = 25, itemType = 'cash'},
        },
        isRandom = true, 
    },
}

Language = {
    ['NOTIFY_TITLE'] = 'DAILY REWARDS',
    ['REWARD_CLAIMED'] = 'YOU HAVE CLAIMED %s!'
}

HTML_Language = {
    ['DAILY'] = "DAILY",
    ['REWARDS'] = "REWARDS",
    ['NEXT_REWARD'] = 'NEXT REWARD: ',
    ['INFO'] = 'INFO',
    ['REMINDER'] = 'LOG IN EVERYDAY TO GET AMAZING REWARDS!',
    ['REWARD_READY'] = 'CLAIM NOW!',
    ['RANDOM_REWARD'] = 'RANDOM REWARD'
}

-- ⚠️DON'T TOUCH THIS⚠️
function L(id) if Language[id] then return Language[id] else return "MISSING LOCALE ("..id..")" end end

Last updated