Config settings

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

Config = {}
Config.Debug = true -- 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.Target = "qb-target" -- Target script. Leave empty if you want to use 3d text instead
--[[
    Supported Targets:
        • ox_target
        • qb-target
]]

Config.ImageSource = "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. Remember the "/" at the end!

Config.EnableCommand = true -- Whether command should be available to open advent calendar
Config.CommandName = "advent" -- Name of the command to open advent menu. You can also use client side export exports['coachAdvent']:openAdvent() in any of your scripts.
Config.CanTakePrevious = false -- Whether player can claim rewards from previous calendar days when he missed it that day. For example open day 4 on day 6 etc... ⚠️ If you change this you have to delete all records inside coachadvent database table. ⚠️
Config.PlaySound = true -- Whether opening sound should be played when claiming reward

Config.IgnoreMonth = false -- Set it to true if you want to test the script if it's not december. ⚠️ If you change this you have to delete all records inside coachadvent database table. ⚠️

Config.EnablePeds = true -- Whether peds with interaction should be spawn to open advent calendar
Config.Peds = { -- You can add as many as you want
    {
        coords = vector3(183.62, -968.06, 29.14),
        heading = 140.0,
        model = `Santaclaus`
    }
}

Config.Days = {
    [1] = {
        itemName = 'money', -- spawn name of item
        imgName = 'cash', -- png name from Config.ImageSource
        itemLabel = 'Cash 15.000$', -- Label 
        amount = 15000, -- Amount
        itemType = 'cash', -- 'cash', 'item', 'account', 'special', special reward logic can be customized in extra/vip_s.lua and extra/vip_c.lua
    },
    [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', 
    },
    [9] = {
        itemName = 'casinochops', 
        imgName = 'casinochops', 
        itemLabel = 'Casino chips (100x)', 
        amount = 100, 
        itemType = 'item', 
    },
    [10] = {
        itemName = 'armor', 
        imgName = 'armor', 
        itemLabel = 'Armor', 
        amount = 1, 
        itemType = 'item', 
    },
    [11] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [12] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [13] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [14] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [15] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [16] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [17] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [18] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [19] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [20] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [21] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [22] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [23] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    },
    [24] = {
        itemName = 'money', 
        imgName = 'cash', 
        itemLabel = 'Cash 15.000$', 
        amount = 15000, 
        itemType = 'cash', 
    }
}

Language = {
    ['NOTIFY_TITLE'] = 'ADVENT CALENDAR',
    ['REWARD_CLAIMED'] = 'YOU HAVE CLAIMED %s!',
    ['OPEN_CALENDAR'] = 'OPEN ADVENT CALENDAR',
    ['PRESS_INTERACT'] = 'PRESS [~b~E~w~] TO OPEN ~b~ADVENT CALENDAR'
}

HTML_Language = {
    ['ADVENT'] = 'ADVENT',
    ['CALENDAR'] = 'CALENDAR'
}

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

Last updated