[ESX] FzD Introduction Calendar

Info:
I made this useful resource for Christmas on my server, this creation calendar has options like:

  • Can solely open days that handed or present on, so in case you are on day 10 you cannot open day 11 or above
  • Using weighted randoms to resolve what present to get, which means you could added a number of rewards and add completely different possibilities received the reward making some more durable to get them others, examine the underside of this subject for config.
  • Customized made mannequin that’s held in your hand open on the appearance calendar

Preview:
Video

Tebex: (£5.00 excl. tax)
FzD Developments | Advent Calendar (tebex.io)

Dependencies:
No Dependencies

Framework:
ESX

Config:

Config = {}

-- Be sure to set this config first, because the generates the reward as quickly as somebody connects to the server.

Config.Items = {

    --[[
        weightRandom - The lower the number the more chance of getting the time, the higher the number the harder
        For example if one item had a weightRandom of 5 and another of 1, you are more like to get the item that had the weightedRandom of 1

        item - This will be the item spawn code

        label - This will be what the item will be displayed as

        type - This should be set to any of the following:

            - cash
            - bank
            - item
            - weapon

        amount - The amount of the item then receive if giving a weapon I recommend leaving it at 1

        image - This will be the image that it displays in the advent calender, check html/images/rewards
    ]]

    [1] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [2] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [3] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [4] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [5] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [6] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [7] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [8] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [9] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [10] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [11] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [12] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [13] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [14] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [15] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [16] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [17] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [18] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [19] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [20] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [21] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [22] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [23] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    },
    [24] = {
        Gadgets = {
            {weightRandom = 5,  merchandise = 'money',                  label="Cash",           kind="financial institution",       quantity = 1000,      picture="money"},
            {weightRandom = 1,  merchandise = 'bread',                 label="Cash Rolls",     kind="merchandise",       quantity = 50,        picture="moneyrolls"},
            {weightRandom = 1,  merchandise = 'weapon_combatpistol',   label="Fight Pistol",   kind="weapon",     quantity = 1,         picture="weapon"},
        }
    }, -- Do not add anymore tables, their is just 24 days in December
}

Config.Notify = perform(msg)
    exports['mythic_notify']:SendAlert('inform', msg)
finish

Different Assets:



Looking for paid scripts? Click here