Skip to content
Documentation
Games & Events4Christmas Season

r_christmas Configuration

r_christmas config: framework and integrations, season dates, commands, snow, the Christmas Square, cheer, the advent calendar, the shop, hunts, world events, gifts, Secret Santa and New Year.

Settings live in three files in shared/. Restart the resource after changing them.

FileWhat's in it
config.luaFramework, season, commands, snow, the square, cheer, calendar, shop
config_hunts.luaSnowmen, daily presents, Yeti hunt
config_events.luaSnowballs, world events, delivery, gifts, Secret Santa, building, New Year

Every module has enabled, so you can run only the parts you want.

General

R.Framework = 'auto' -- 'auto' | 'esx' | 'qb' | 'qbox'
R.CoreName = 'es_extended'
R.Inventory = 'ox_inventory' -- 'ox_inventory' | 'qs-inventory' | 'none'
R.Target = 'none' -- 'ox_target' | 'qb-target' | 'none' (key prompt) | 'custom'
R.Notify = 'ox_lib' -- 'ox_lib' | 'esx' | 'qb' | 'okok'
R.TextUI = 'builtin' -- 'builtin' | 'gta' | 'ox_lib' | 'okok' | 'qb' | 'jg' | 'cd' | 'esx' | 'custom'
R.Progress = 'builtin' -- 'builtin' | 'gta' | 'ox_lib_bar' | 'ox_lib_circle' | 'qb' | 'esx' | 'progressbars' | 'mythic' | 'custom'
R.Avatars = 'auto' -- Discord pictures: 'auto' | 'trase' | 'badger' | 'none'
R.Debug = false
R.EnableLogs = true -- webhooks in server/sv_custom.lua
R.EnableAutoinsert = true -- creates the tables on first start

R.Inventory = 'none' uses your framework's own inventory for items and weapons.

Prompt style, progress bar and custom target

R.TextUI = 'builtin' and R.Progress = 'builtin' use the script's own prompt and bar. Pick another style if you want them to match your server. For custom, edit BridgeTextUI in bridge/cl_textui.lua or BridgeProgress in bridge/cl_progress.lua.

R.Target = 'none' uses the built-in key prompt. R.Target = 'custom' is for any other target script: fill in BridgeCustomTarget in bridge/cl_target.lua with AddBoxZone, AddModels, AddEntity and Remove. Each option has name, label, icon, distance, canInteract and onSelect.

The bridge/ folder is open, so you can edit it freely.

Season

R.Season = 'auto' -- true | false | 'auto' = on between the dates below (server date)
R.SeasonDates = { from = '12-01', to = '01-06' } -- 'MM-DD', both days included

Outside the season the script is idle. /xmasadmin season on|off|auto overrides this live.

Commands

R.Commands = {
    hub = 'christmas', -- opens the hub anywhere, false = only at the trees
    snowman = 'snowman', -- builds a snowman in front of you
    admin = 'xmasadmin'
}

R.AdminGroup = 'group.admin'
KeyWhat it does
EOpen the hub at a tree, open a present, take the photo, carry presents
GPick up snowballs (unarmed, outdoors, on snow)

Players can rebind G in FiveM settings. The admin subcommands are on Installation.

Interface

R.UI = {
    Accent = '#e11d48', -- icons, bars, badges, game state
    Primary = '#ffffff', -- main action buttons
    PrimaryText = '#000000', -- text on those buttons
    NavActive = '', -- selected tab background, '' keeps the neutral default
    NavActiveText = '#ffffff' -- selected tab text
}

R.Currency = { symbol = '$', after = false, separator = ',' }

R.Images = 'nui://ox_inventory/web/images/%s.png' -- item and weapon pictures in the hub, %s = item name

Not on ox_inventory? Point R.Images at your inventory's image folder.

Candy canes

R.CandyCanes = {
    item = 'r_candycane' -- the season currency, item files in assets/
}

Snow

R.Snow = {
    enabled = true,
    weather = 'XMAS', -- weather while the season is on, false = keep your weather and only add the ground snow
    ground = true, -- white ground, foot and tyre tracks
    sound = true, -- snowy footsteps
    pauseSync = true -- pauses qb-weathersync, cd_easytime, Renewed-Weathersync, vSync, av_weather
}

The pause lives in PauseWeatherSync in client/cl_custom.lua. Add your own weather script there.

Christmas Square

R.Square = {
    enabled = true,
    tree = { model = 'prop_xmas_ext', fallback = 'prop_xmas_tree_int', coords = vec4(195.90, -933.80, 30.69, 0.0) },
    blip = { sprite = 781, color = 1, scale = 0.9, label = 'Christmas Square' },
    radius = 8.5, -- metres from the tree where the hub prompt shows
    decor = { ... }, -- presents, sleigh and candy canes around the tree, offsets from the tree
    trees = { -- more trees around the map that also open the hub, no decor
        vec4(-1381.30, -950.60, 9.70, 0.0),
        vec4(1150.20, -645.30, 56.80, 0.0),
        vec4(-208.30, 6219.70, 31.50, 0.0),
        vec4(1700.20, 3600.70, 35.40, 0.0)
    }
}

Move the tree and the decor follows it.

R_Props Christmas

With R_Props Christmas started, the other trees become 6 m town trees, gift piles, reindeer, a straw goat and big candy canes join the main tree, the daily presents use the pack's gifts and players can also build its snowman. Nothing to set up.

R.PropPack = {
    enabled = true,
    resource = 'r_props_christmas',
    trees = 'r_xmas_tree_town', -- the other trees around the map
    decor = { ... }, -- added around the main tree, offsets from the tree
    presents = { 'r_xmas_gift_pile', 'r_xmas_gift_b', 'r_xmas_gift_c' }, -- the daily presents
    build = { 'r_xmas_snowman' } -- added to the snowmen players build
}

enabled = false keeps the game's own props even with the pack installed.

Cheer

Season points for the leaderboard. 0 turns one off.

R.Cheer = {
    advent = 150,
    present = 40,
    snowman = 60,
    snowmenAll = 1000,
    snowballHit = 3,
    snowballDaily = 150, -- max cheer from snowball hits a day
    delivery = 35,
    sleigh = 50,
    hauler = 25,
    thief = 150,
    yetiPhoto = 250,
    yetiRampage = 300,
    giftSent = 80,
    build = 20
}

Advent calendar

R.Advent = {
    enabled = true,
    catchUp = 2, -- missed days that can still be opened, 0 = only today
    days = { -- reward behind each door: canes, money { account, amount }, item { name, count }
        { canes = 10 }, { money = { 'cash', 2500 } }, { canes = 10 }, { item = { 'bandage', 5 } }, ...
        { canes = 100, money = { 'bank', 50000 } }
    }
}

24 entries, one per door from 1 to 24 December. Future doors stay locked. Change the items to ones your server has.

Shop

R.Shop = {
    { id = 'cash_small', type = 'money', account = 'cash', amount = 2500, price = 15, icon = 'banknote', image = 'money' },
    { id = 'snowballs', type = 'weapon', weapon = 'WEAPON_SNOWBALL', ammo = 10, price = 5, icon = 'snowflake' },
    { id = 'candycane', type = 'weapon', weapon = 'WEAPON_CANDYCANE', ammo = 1, price = 60, icon = 'candy-cane', label = '1x Candy Cane Bat' },
    { id = 'snowlauncher', type = 'weapon', weapon = 'WEAPON_SNOWLAUNCHER', ammo = 1, shots = 20, price = 120, icon = 'snowflake', label = '1x Snowball Launcher, 20 shots' },
    { id = 'bandage', type = 'item', item = 'bandage', count = 5, price = 10, icon = 'heart-pulse' },
    ...
}

price is in candy canes. Three types: money, weapon and item. The Snowball Launcher needs game build 3095 or newer and comes loaded with its shots. ox_inventory can't reload it with snowballs.

Snowmen

shared/config_hunts.lua

R.Snowmen = {
    enabled = true,
    canes = 5, -- per snowman
    money = { 'cash', 2500 },
    complete = { canes = 100, money = { 'bank', 50000 } }, -- all 25 destroyed, once a season
    attract = 75.0, -- metres where the sleigh bells play
    blips = false, -- true shows every snowman on the map
    spots = { ... } -- the 25 snowmen
}

Punch, shoot or drive into a snowman to knock it down.

Daily presents

R.Presents = {
    enabled = true,
    perDay = 12, -- presents out each day, the same spots for everyone, new spots at midnight
    canes = { 2, 5 },
    money = { 'cash', { 500, 1500 } },
    rare = { chance = 5, canes = 25 }, -- % chance of a golden present
    models = { 'xm3_prop_xm3_present_01a', 'm23_2_prop_m32_giftbox_small_01a', 'm23_2_prop_m32_giftbox_med_01a' },
    hint = 120.0, -- metres where a present starts to sparkle
    spots = { ... } -- 200 spots
}

Each player can open each present once a day.

Yeti hunt

R.YetiHunt = {
    enabled = true,
    cooldown = 60, -- minutes per player
    model = 'U_M_M_Yeti',
    steps = { 14, 20 }, -- footprint stretches before the yeti shows up
    stepLength = 18.0, -- metres between footprint groups
    photoRange = 25.0, -- get this close and press E to take the photo
    noticeRange = 9.0, -- closer than this, or sprinting within 18 m, and he runs
    canes = 30,
    money = { 'bank', 15000 },
    trailheads = { ... } -- where the trail starts, one picked at random
}

Started from the Activities tab. Follow the footprints and get the photo before he runs.

Snowballs

shared/config_events.lua

R.Snowballs = {
    enabled = true,
    pickup = 2, -- snowballs per pickup (G while unarmed outdoors)
    max = 10, -- snowballs a player can carry
    onlyOnSnow = true -- false allows picking them up when the season is on but the snow is off
}

Sleigh drop

R.SleighDrop = {
    enabled = true,
    every = { 35, 55 }, -- minutes between drops while enough players are online
    minPlayers = 2,
    presents = 6, -- parachutes per drop
    perPlayer = 2, -- most presents one player can claim per drop
    canes = { 8, 15 },
    money = { 'cash', { 1500, 4000 } },
    radius = 45.0, -- metres around the zone centre where the presents land
    lifetime = 600, -- seconds before unclaimed presents vanish
    zones = {
        { label = 'Vespucci Beach', coords = vec3(-1334.73, -1280.18, 3.84) },
        { label = 'Del Perro Pier', coords = vec3(-1640.90, -1060.40, 13.15), radius = 18.0 }, -- radius per zone overrides the one above
        ...
    }
}

Santa's sleigh flies over a zone and drops presents. The first player to reach one gets it.

Holiday Hauler

R.Hauler = {
    enabled = true,
    every = { 70, 110 }, -- minutes between runs while enough players are online
    minPlayers = 2,
    vehicle = 'benson', -- box truck spawned by the server, doors locked
    color = { 27, 27 }, -- primary, secondary (27 = red), false = the model's own colours
    plate = 'HOHOHO',
    extra = 4, -- box design for benson: 4 = Stay Frosty, false = random
    driver = 's_m_m_trucker_01',
    start = vec4(216.25, -825.5, 30.4, 70.8), -- where it leaves from and comes back to
    stops = { vec3(-245.49, 6413.26, 30.26) }, -- driven in order, then back to start
    speed = 18.0, -- m/s
    style = 786603, -- driving style
    dropEvery = 90, -- seconds between presents
    presents = 12, -- most presents per run
    perPlayer = 4, -- most presents one player can claim per run
    canes = { 4, 10 },
    money = { 'cash', { 750, 2500 } },
    lifetime = 300, -- seconds a dropped present stays on the road
    maxMinutes = 50, -- the truck leaves after this even if it is not back
    blip = { sprite = 477, color = 1 }
}

A decorated truck drives across the map and drops presents on the road. Follow it and grab them.

Yule Thief

R.Thief = {
    enabled = true,
    model = 'U_M_M_YuleMonster',
    hours = { 18, 5 }, -- in-game hours when he hunts
    checkEvery = 120, -- seconds between rolls per player while the conditions are met
    chance = 8, -- % per roll
    cooldown = 60, -- minutes per player
    maxActive = 2,
    steal = 'canes', -- 'canes' | 'cash' | false (he only runs, nothing is taken)
    stealCanes = { 5, 15 },
    stealCash = { 5, 2500 }, -- % of cash in hand, max amount
    health = 400, -- damage needed to take him down
    escape = 90, -- seconds before he gets away with it
    bonus = { canes = 15, money = { 'cash', 3000 } }
}

At night he mugs a player and runs. Take him down in time to get everything back plus the bonus.

Yeti rampage

R.YetiRampage = {
    enabled = true,
    model = 'U_M_M_Yeti',
    every = { 90, 150 }, -- minutes between rampages, false = only /xmasadmin yeti
    minPlayers = 4,
    warning = 60, -- seconds of warning before he shows up
    health = 6000, -- damage needed, shared by everyone, max 8000
    duration = 600, -- seconds before he leaves
    minDamage = 150, -- damage a player must deal to share the reward
    canes = { 30, 60 },
    money = { 'bank', { 10000, 25000 } },
    zones = { ... } -- Vespucci Beach, Mirror Park, ULSA, El Burro Heights
}

A server-wide boss fight. Everyone who deals minDamage shares the reward.

Santa's delivery

R.Delivery = {
    enabled = true,
    vehicle = 'speedo', -- spawned by the server at the depot
    color = { 27, 27 }, -- primary, secondary (27 = red), false = the model's own colours
    livery = -1, -- -1 = none, or a livery number for models that have them (pony: 0, 1, 2)
    plate = 'SANTA',
    depot = vec4(222.02, -804.19, 30.26, 248.5),
    houses = 5,
    time = 900, -- seconds for the whole route, the clock starts when you reach the van
    reachTime = 600, -- seconds to reach the van after starting from the hub
    perPresent = { 800, 1400 },
    canes = 3, -- per present
    bonus = 2500, -- finished with at least half of the time left
    cooldown = 10, -- minutes between routes
    doors = { ... } -- vec4 standing at the door, facing it
}

Started from the Activities tab. Keys and fuel for the van go through GiveVehicleKeys and SetFuel in client/cl_custom.lua.

Gifts

R.Gifts = {
    enabled = true,
    maxItems = 3, -- different items in one gift
    maxMoney = 100000,
    account = 'cash', -- money is taken from and paid into this account
    blocked = { 'money', 'black_money', 'markedbills' }, -- items that can never be wrapped
    message = 120, -- max characters in the card
    perDay = 10, -- gifts a player can send a day
    cheerPerDay = 2 -- gifts a day that give cheer
}

Players wrap items or money from their own inventory for another player. The gift waits in the hub's Gifts tab until it is unwrapped.

Secret Santa

R.SecretSanta = {
    enabled = true,
    signupUntil = '12-15', -- 'MM-DD', last day to sign up
    draw = '12-16', -- pairs are drawn at the first restart or minute check on this day
    openFrom = '12-24', -- secret santa gifts unwrap from this day
    minPlayers = 3,
    canes = 20 -- for every secret santa who sends their gift
}

With fewer than minPlayers sign-ups there is no draw that year.

Build a snowman

R.Build = {
    enabled = true,
    models = { 'xm3_prop_xm3_snowman_01a', 'xm3_prop_xm3_snowman_01b', 'xm3_prop_xm3_snowman_01c' },
    perPlayer = 2,
    lifetime = 120, -- minutes
    maxTotal = 60,
    time = 6000 -- ms of building
}

/snowman or the Activities tab. Everyone sees the snowman.

New Year

R.NewYear = {
    enabled = true,
    at = '12-31 23:59:50', -- server time when the countdown starts
    duration = 150, -- seconds of fireworks
    scale = 5.0, -- size of each burst
    spots = {
        vec3(195.90, -933.80, 30.69),
        vec3(-1850.10, -1231.00, 13.00),
        vec3(711.50, 1197.80, 348.50),
        vec3(1088.20, -642.10, 56.80)
    }
}

A 10-second countdown on every screen, then fireworks at each spot.

Custom client functions

client/cl_custom.lua is open:

FunctionWhat it's for
Notify(text, kind, duration)Your notification script
PauseWeatherSync(paused)Pauses your weather script while the snow is on
GiveVehicleKeys(vehicle, plate)Keys for the delivery van (qbx_vehiclekeys, qb-vehiclekeys, wasabi_carlock, qs-vehiclekeys built in)
SetFuel(vehicle)Fuel for the van (ox_fuel, LegacyFuel, cdn-fuel built in)
CanDoActivity()Blocks activities while dead, cuffed or busy
OnHubOpened() / OnHubClosed()Hide your HUD while the hub is open