XMAS Advent Calendar (NUI)

RedM Advent Calendar Script

Get this script for just 1€ on Tebex :christmas_tree:


This RedM Advent Calendar Script is designed to emulate a traditional Advent calendar experience directly within the game.

Players can open a specially styled user interface (NUI) each day in December and claim daily rewards—ranging from items, money, to gold.

This script integrates seamlessly with VORP Core and VORP Inventory, ensuring that all rewards are properly granted to the player’s character and recorded in a MySQL database.


Key Features

  • Advent-Style Calendar:
    A fully interactive NUI-based calendar with 25 slots (or more if you configure them) scattered randomly across a “page.” Players must locate the current day’s slot and open it to receive their reward.

  • Date-Based Accessibility:
    The calendar automatically checks the current in-game date (or real date) and only allows players to open the slots for that day or any past day they have not yet opened. Slots for future days remain locked.

  • Reward Variety:
    Configure daily rewards in config.lua. Define items, money, or gold for each specific day. This flexibility allows you to tailor the rewards to your server’s economy and roleplay environment.

  • MySQL Integration:
    Player progress (redeemed slots) is stored in a MySQL table (zm_advcal). This ensures that even if a player logs out and returns later, their opened slots remain tracked and cannot be exploited.

  • Notifications & Localization:
    Notifications to the player are handled through Core.NotifyTip or your chosen notification system. All textual strings and messages can be fully localized via the config.lua, making it easy to switch languages or change messaging without editing the script’s logic.

Preview

Code is accessible No
Subscription-based No
Lines (approximately) 100
Requirements & dependencies VORP Core - VORP Inventory
Support Yes (Discord)
1 Like

Please make sure to include the paid releases template in your topic.

Thank you!
:mascot:

Oh yes sorry, i forgot <3 happy days