SleepyCode
Home
AboutBlogSubscriptionDocs
Cart0
SleepyCode
Cart0
  1. Home
  2. /
  3. Guides
5 min read

Guide · June 28, 2026

How to Set Up the SleepyCode Advent Calendar on FiveM

Setup guide for SC Advent Calendar - FiveM seasonal reward script with 24 daily gifts. Dependencies, config.lua reward types and Discord webhook.

SC Advent Calendar is a seasonal FiveM script that gives players a different reward every day for 24 days. Server owners configure the gift for each day - choosing between vehicles, inventory items, and money - and set which day is currently active. The script logs every gift claim to a Discord webhook.

Framework: No specific framework required. The script works on any FiveM server. It requires ox_lib and oxmysql regardless of your framework.

Dependencies

ResourceWhere to get it
ox_libgithub.com/overextended/ox_lib
oxmysqlgithub.com/overextended/oxmysql

Installation Steps

1. Place the resource

Extract the downloaded folder from Keymaster and place it inside your server's resources directory.

2. Add to server.cfg

ensure ox_lib
ensure oxmysql
ensure sc_advent_calendar

Optionally, set your server locale for ox_lib before starting resources:

setr ox:locale en

Replace en with your language code (e.g. pl for Polish) if you have a translation file in locales/.

3. No manual SQL needed

The script automatically creates its database tables on the first launch. You do not need to import any .sql file.

4. Configure rewards

Open shared/config.lua and set up the 24 gifts and the currently active day. See below for config details.

5. Restart and test

Restart the server. Players can open the advent calendar in-game and claim today's gift (the day set in Config.Day).

Setting the Active Day

lua
Config.Day = 5  -- which calendar day is currently open

Update this value each day to advance the calendar. Only the day matching Config.Day will be claimable; all other days are locked or shown as already claimed.

Configuring Gifts

Each of the 24 days is configured inside the Config.Gifts table:

lua
Config.Gifts = {
  [1]  = { type = "money", name = "money",    amount = 5000,    label = "$5,000" },
  [2]  = { type = "item",  name = "sandwich", amount = 3,       label = "3x Sandwich" },
  [3]  = { type = "car",   name = "adder",    amount = 1,       label = "Adder" },
  -- ... entries 4-24
}

Reward Types

There are three reward types:

Typename fieldamount field
money"money"cash amount (integer)
iteminventory item name (e.g. "sandwich")quantity
carvehicle spawn name (e.g. "adder")always 1

Make sure the name value for item rewards exactly matches the item registered in your inventory resource, and that the name for car rewards is a valid GTA V vehicle spawn name.

Discord Webhook

Open shared/config.server.lua and add your Discord webhook URL:

lua
ConfigServer.Webhook = "https://discord.com/api/webhooks/YOUR_WEBHOOK_HERE"

Leave it empty ("") to disable Discord logging.

The webhook message includes the player name, reward type, reward name, and amount:

lua
ConfigServer.Locales = {
  Title       = "Gracz odebrał prezent z Kalendarza Adwentowego!",
  Description = "Gracz {name} odebrał prezent: {reward} x{amount}",
  Color       = 2552550,
}

You can translate these strings to English or any other language by editing the values directly.

Translations

If you want to translate the in-game UI, duplicate one of the files in the locales/ folder (e.g. pl.json) and rename it to your language code. Then set setr ox:locale yourcode in server.cfg.

Common Issues

Players claim the wrong day's gift - Double-check that Config.Day is set to the correct number and the resource has been restarted or reloaded after the change.

Car reward gives nothing - The name field must be a valid GTA V vehicle model name (not a display name). Test with /givecar [id] [model] car if available on your server.

Item reward gives nothing - Confirm the item name in Config.Gifts matches the item in your ox_inventory or ESX inventory exactly (case-sensitive).

Discord webhook not sending - Verify the webhook URL is correct and the bot has permission to post in that channel.

Support

Join the SleepyCode Discord at discord.gg/qCDt8u7Efg for help. Purchase the Advent Calendar script at sleepycode.eu/scripts.

The script

Don't have Advent Calendar yet?

See the product page

On this page

  1. 01Dependencies
  2. 02Installation Steps
  3. 03Setting the Active Day
  4. 04Configuring Gifts
  5. 05Discord Webhook
  6. 06Translations
  7. 07Common Issues
  8. 08Support
Next

More guides

  • How to Install FiveM Scripts on ESX, QBCore and QBox (Step by Step)Install any FiveM script the right way: folder names, the resources folder, dependencies, SQL files, server.cfg ensure order and the console errors that tell you what went wrong.Read →
  • Fix "You Lack the Required Entitlement" in FiveM (Escrow Error)Why FiveM says you lack the required entitlement for an escrowed script, and the six checks that fix it: license key account, granted assets, FTP transfer mode, artifacts and more.Read →
Ready when you are

Put your server on something that holds up

150+ servers run our resources - ESX, QBCore and standalone. Once the payment clears, the package is waiting in Keymaster.

Browse the catalogueAsk on Discord ↗
  • Delivered instantly
  • Support with no expiry
  • 100+ reviews
  • Payment via Tebex

SleepyCode

FiveM Scripts

Checkout is run by Tebex Limited - they handle payment, invoicing and refunds. © 2026

Community

  • Discord
  • YouTube
  • X (Twitter)

Navigation

  • Home
  • All Scripts
  • ESX Scripts
  • QBCore Scripts
  • Free Scripts
  • About
  • Blog
  • Documentation
  • Support

Legal

  • Privacy Policy
  • Tebex Privacy Policy
  • Terms of Service
  • Impressum

© 2026 SleepyCode. Not affiliated with Rockstar Games or Take-Two Interactive.

Powered byTebex