rcore.cz
  • rcore.cz
  • Store
  • Discord
  • Web administration
  • Our store
  • YouTube
  • 🐌CFX Auth system
    • CFX Auth system
    • Transfer script to another account
    • Error: You lack the required entitlement
    • Error: syntax error near '<\1>'
  • Server
    • Updating server
    • onesync
  • Administration
    • How to change IP
    • Forgot your password?
  • FAQ
    • General issues
    • Cannot verify license
    • Cannot hear any music
    • ECONNRESET: Unable to execute a query
  • paid resources
    • 🏑rcore_airhockey
      • How To Play
      • Spawning a Hockey Table
    • 💪rcore_armwrestling
      • How to place arm table
    • 🎴rcore_banners
      • How to Begin
      • How to Update
      • Common issues & solutions
      • Installation
      • Inventory Items
      • Configs
        • General
        • Billboards
        • Business
        • Permissions
        • Job
        • Config
      • Guides
        • How to change UI logo?
        • How to create new server banner?
        • How to create business?
        • How to buy billboard?
        • How to place banner?
        • Cannot see banners?
        • Expired images
      • API
    • 🏀rcore_basketball
      • Configure new hoop
    • 🏓rcore_beerpong
      • How to use
    • 📹rcore_bodycam
      • Integration
      • Anticheat
      • Recordings don't save
    • 🎳rcore_bowling
      • Configure new alley
    • 🎥rcore_cam
      • Integration
      • Anticheat
    • ⛺rcore_camping
      • Installation
      • Config
      • Consumable Beer
      • OX Inventory
      • Frameworks
      • API
    • 🎪rcore_carnival
      • Create new minigame
    • 🃏rcore_casino
      • Installing Maps
        • UncleJust Casino
        • DlcIplLoader
        • Gabz Casino
        • NoPixel Casino
        • K4MB1 Casino
        • rcore_casino_interior
        • Underground Casino Paleto
        • K4MB1 Enterable Diamond Casino
        • Patoche Casino
        • Clawles: Casino Los Santos
        • Molo Casino
        • Jurassic Jackpot Casino
      • Standalone Version
      • Custom Framework
      • Installing on QBCore
      • Installing on ESX
      • Installing Inventory Items
      • The Cashier
      • Society
      • Lucky Wheel & Podium Vehicle
      • Table Games
      • Slot Machines
      • Casino Bar
      • Inside Track
      • Translations
      • Discord Hook
      • MYSQL Info
      • CasinoControl (Exports)
      • Casino Job & Office
      • Changing Odds
    • 👕rcore_clothes
      • Dark theme
      • Adding a new clothes shop
      • Components
      • Restriction for certian job
      • Custom clothes price
      • Clothes blacklist / Whitelist
      • esx_accessories
      • qb_apartments
      • cui_character
      • API: Open outfits
      • API: Open clothes shop
    • 🎽rcore_clothing 🆕
      • How to begin
      • Installation
      • Migration
      • Configs
        • Main config
        • Price config
        • Shop config
        • Peds config
        • Undress clothes
      • FAQ
      • Admin mode
        • Modes
        • Image debugging
        • Stock management
      • Adding replace/addon clothes
      • Categorize clothing automatically
      • API
      • Troubleshooting
      • Integration
        • Multichar integration guide
        • esx_multicharacter
        • esx_multicharacter OLD
        • qb-multicharacter
        • crm_multichar
        • codem_multichar
        • okok_multichar
        • qbox_multichar
        • ESX vms_multichar
        • QB vms_multichar
        • qs-multicharacter
        • um_multichar
        • wais_multicharacter v2
        • zr_multichar
        • zsx_multicharacter
    • 💃rcore_dance
      • Installation
      • Config
      • FAQ
      • Troubleshooting
      • API
    • 📱rcore_dispatch
      • Config
      • Add alerts
      • Add jobs
      • Locales
      • Logs
      • Integrations
      • Framework
      • Voice and radio
    • 🔒rcore_doorlock
      • Installation
      • Configuration
      • Migration
      • Business
        • Configuration
        • Locksmith Example
      • Inventory Items
      • Keychain
      • API
    • 🍺rcore_drunk
      • How to place drink on table
      • Create new item drink
      • ox inventory
      • API
      • How to use
    • 🥚rcore_easter
      • Installation
      • Configuration
      • API
    • ⛽rcore_fuel
      • Installation
        • ESX
        • QBCore
      • Inventory
        • ESX
        • QBCore
        • ox_inventory
      • Config
        • New fuel station
        • Change fuel type for vehicle
        • Change fuel capacity for vehicle
        • Setting fuel station to be ownable
        • Wrong fuel type
        • Change gas price
      • Integrations
        • API
        • Vehicle keys integrations
        • Hud/Garage integration
      • Server
        • Commands
    • 🔫rcore_gangs
      • API
        • Client
        • Server
      • Integration
        • Framework
        • Inventory
        • Dispatch
      • Localization
      • Configuration
        • Custom gang zone
    • 🚙rcore_garage
      • qb-phone missing garages name
      • missing screenshots
    • 📙rcore_guidebook
      • Installation
      • Config
      • Data permissions
      • API
      • Themes
      • 📙V1 Docs
        • Installation
        • API
        • Themes
    • 🔫rcore_gunshop
      • QBCore Installation
      • ESX Installation
      • How to change pricing
      • How to enable sales of weapons
      • Enabling MK2 weapons on QBCore
      • Adding the ammunation job for QBCore
      • Adding the ammunation job for ESX
    • 🎯rcore_gunrange
      • Installation
      • API
      • Troubleshooting
      • Frequently Asked Questions
      • Gun Range Editor
    • 🏨rcore_hotel
      • How to add another hotel example
      • esx_inventoryhud
      • Quasar inventory
      • OX inventory
      • MF inventory
      • Custom wardrobe
    • 🧑rcore_identity
      • How to change date format
      • esx_kasharacter
    • 🟠rcore_job_blips
      • Installation
      • Configuration
      • Blip Setup
      • Group Setup
      • API
    • ⛳rcore_minigolf
      • Builder
      • Company
      • Config
    • 🚛rcore_missionpack_legal
      • Migrate from old version
    • 🚗rcore_pdm
      • Missing images
      • Blips on minimap
      • Vehicles in stock
      • Missing vehicle names
      • Edit the speed of the vehicle in UI
      • Boss menu + locations
      • Displayed vehicle in the shop
      • How to add a vehicle with a new category
      • QBCore
        • Import missing vehicles from qbcore to rcore_pdm
        • Job data for QBCore framework
        • Import vehicles from database to qbcore
    • 🏓rcore_pingpong
      • How To Play
      • Spawning a Pong Table
      • Match Settings
    • 🤽‍♀️rcore_pool
      • Anticheat
      • How to place pool table
    • 👮rcore_police
      • Installation
      • How to Update
      • Features
      • Inventory
      • Deployer
      • Configs
        • Main Config
      • API
        • Client
        • Server
    • ⛓️rcore_prison
      • Migration from V1
      • How to Begin
      • How to Update
      • Installation
      • Inventory items
      • Configs
        • Main Config
      • Guides
        • Deployer
        • Changing minigame for Cigarette packaging
        • Changing Prison jobs reward
        • Configuring Permissions
        • How to translate in-game panel
        • How to define own stats for Prison GYM?
        • How to define/change default Prisoner outfits?
        • How to define own Prison map?
      • Features
        • Prison Break
        • Solitary
        • Cigar packaging
        • Canteen
        • Dealer
        • Dashboard
        • Chair system
        • Prison Prolog
      • Integrations
        • Inventory
        • Inventory items
      • API
        • Client
        • Server
      • ⛓️V1 Docs
        • Config
        • Inventory
        • API
          • Client
          • Server
        • Locales system
        • Interiors presets
        • Camera prolog
        • Outfits
    • 📻rcore_radiocar
      • API
        • Radio item
        • Marker for buying radio
    • 📋rcore_report
      • Installation
      • API
      • Ace Permissions
      • Config
      • UI Config
      • Features
      • Console Logs
      • Custom Data
      • Responsivity
    • 🏪rcore_shops
      • Add new shop
      • How to add weapon
      • Hide blip on minimap / map
      • Restrict shop to certain job
    • 🔠rcore_shortcuts
      • API
      • Commands and Hotkeys
      • Permissions
      • Notifications
      • Limits
      • Styles
    • ✨rcore_spray
      • ESX instalation
      • QBCore instalation
      • OX Inventory instalation
      • How to add a new image
      • How to add a new font
      • Gang integration
      • Anticheat
    • 📈rcore_stats
      • Installation
      • Permissions
      • Configs
        • Main config
        • Performance
        • Units
        • Other
      • Translation
      • Changing Default Values
      • API
        • Integration
        • Delete
        • Other
    • 👹rcore_tattoos
      • Installation
      • Migrations
      • Add-on tattoos
      • Config
      • Custom Framework
      • Design
      • Tattoo config options
      • Tattoo permissions
      • Troubleshooting
      • API
      • Integrations
        • qb-gangs
      • Business update
        • Config
        • Simple Business
        • Business with jobs
        • Default settings
    • 📺rcore_television
      • How to add a new television
    • 🔧rcore_tuning
      • Editing your config
      • Configuring your framework
      • Job integration
      • Item integration
      • Editing tuning prices
    • 📋rcore_whiteboard
      • Whiteboard type & data
      • Position editor
      • API
      • FAQ
    • 🎁rcore_xmas
      • Installation
      • Configuration
      • Inventory Items
      • Snowball Damage
      • API
    • 📻xradio
      • API
      • Custom menu
      • Ox inventory
  • free resources
    • rcore_arcade
      • How to add msdos games
Powered by GitBook
On this page
  • Debug
  • Features
  • File preview

Was this helpful?

  1. paid resources
  2. rcore_xmas

Configuration

🗒️ All values are properly described in config file of the script. Configuration file is located in rcore_xmas/config.lua!

Debug

If you have any issue with script and you don't know how to solve it, set Debug = true in configuration file to see additional informations printed to client console (F8) and server console. Screenshots will help our support to solve faster and better your problem in ticket.

Features

There is category for each feature of the script - Snowballs, PresentHunt, Trees, Gifts and Snowman. Each category and also some of their subcategories has property Enabled that allows you to enable/disable feature.

File preview

Config = {
    Debug = false,                        -- [true/false] - Enables debug mode, which will print additional information to the console.

    Framework = Framework.ESX,            -- [ESX - es_extended, QBCore - qb-core, Standalone - standalone]
    Inventory = Inventory.OX,             -- [OX - ox_inventory, QB - qb-inventory, QS - qs-inventory, MF - mf-inventory]
    Target = Target.OX,                   -- [NONE - none (pressing E), OX - ox_target, QB - qb-target, Q - qtarget]
    Database = Database.MYSQL_ASYNC,      -- [OX - ox_mysql, MYSQL_ASYNC - mysql-async, GHMATTI - ghmattimysql]

    XmasWeather = true,                   -- [true/false] - Enables Xmas weather.
    EnableVehicleTrailsEverywhere = true, -- [true/false] - Enables vehicle trails everywhere.
    EnablePedFootstepsEverywhere = true,  -- [true/false] - Enables ped footsteps everywhere.
    WaterFreezes = 0.0,                   -- [float] - The strength of the frozen water effect. 0.0 = no frozen water, 3.0 = completely frozen water.
    SnowIntensity = 1.0,                  -- [float] - The intensity of the snow effect. 0.0 = no snow, 1.0 = heavy snow.

    CancelProgressBar = {
        Key = 194,
        Label = 'INPUT_FRONTEND_RRIGHT',
        Text = 'Cancel',
    },

    Snowballs = {           -- [table] - Snowballs
        Pickup = {
            Enabled = true, -- [true/false] - Enables snowball pickup.
            Bind = {
                Description = 'Pickup snowball',
                Controls = 'keyboard',
                Key = 'k',
            },
            Animation = {
                Dict = 'anim@mp_snowball', -- [string] - Animation dictionary.
                Name = 'pickup_snowball',  -- [string] - Animation name.
            },
            Receive = {
                Item = 'WEAPON_SNOWBALL',
                -- Weapon = `WEAPON_SNOWBALL`,
                Amount = 2,
            },
            Notifications = {
                Interior = 'You can not pick up snowballs in an interior.',
                Cooldown = 'You are on cooldown. Wait before you can pick up another snowball!',
                NotFree = 'You can not pick up snowballs while doing something else!',
            }
        }
    },

    PresentHunt = {                                       -- [table] - Present hunt
        Enabled = true,                                   -- [true/false] - Enables present hunt.
        Model = `bzzz_xmas23_convert_tree_gift`,          -- [hash] - Model of the present.
        DeleteAfterCollect = true,                        -- [true/false] - Delete present after collecting.
        Collect = {
            Radius = 2.0,                                 -- [float] - Radius of the collection area (Work only with Target.NONE)
            HelpText = {                                  -- Works only with Target.NONE
                Enabled = true,                           -- [true/false] - Enables help text.
                Text = '~INPUT_CONTEXT~ Collect present', -- [string] - Help text.
            },
            Target = {
                label = 'Collect present',
                distance = 1.5,
                icon = 'fa-solid fa-gift' -- https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free
            },
            Animation = {
                Dict = 'anim@mp_snowball', -- [string] - Animation dictionary.
                Name = 'pickup_snowball',  -- [string] - Animation name.
            },
        },
        Rewards = {                                -- [table] - Loot table for rewards
            {
                item = 'cash',                     -- [string] - Item name.
                amount = { min = 100, max = 200 }, -- [int/table] - Amount of the item. If table is used, it will generate a random number between min and max.
                chance = 900,                      -- [int] - Chance of getting the item.
            },
            {
                item = 'pistol',
                amount = 1,
                chance = 10,
            },
            {
                item = 'meth',
                amount = { min = 1, max = 3 },
                chance = 20,
            },
            {
                item = 'weed',
                amount = { min = 3, max = 8 },
                chance = 10,
            }
        },
        Notifications = { -- [table] - Notifications
            Error = 'An error occurred while collecting the present!',
            InventoryError = 'An error occurred while adding the reward to your inventory!',
            RewardNotFound = 'Reward not found!',
            RewardGiven = 'You got %sx %s!',
        },
    },

    Trees = {                                             -- [table] - Christmas trees
        Persist = {                                       -- [table] - Persistent trees
            Enabled = true,                               -- [true/false] - Enables if the trees should be persistent and be available after server restart AND is allowed to open GIFTS STASH.
            PerPlayerLimit = 2,                           -- [int/false] - How many trees can a player have at the same time (false = unlimited)
        },
        Build = {                                         -- [table] - Tree building
            Enabled = true,                               -- [true/false] - Enables tree building / placing
            InteriorOnly = true,                          -- [true/false] - Enables tree building only in interiors
            Models = {                                    -- [table] - Tree models
                Undecored = `bzzz_xmas23_convert_tree_a`, -- [hash] - Undecored tree model
                Decored = `bzzz_xmas23_convert_tree_b`    -- [hash] - Decored tree model
            },
            Command = 'tree',                             -- [string] - Command to start building
            Item = 'xmas_tree',                           -- [string/nil] - Item to start building
        },
        Stash = {
            Title = 'Tree Gifts (%s)',                        -- [string] - Title of the stash (%s is used for the tree ID)
            Slots = 10,                                       -- [int] - Slots of the stash
            MaxWeight = 1000.0,                               -- [float] - Max weight of the stash
            OxInventoryHook = {
                OnlyGifts = true,                             -- [true/false] - Enables only gift items in the stash
                GiftsOnGround = {
                    Enabled = true,                           -- [true/false] - Enables gifts on the ground if something is in the stash
                    Model = `bzzz_xmas23_convert_tree_gifts`, -- [hash] - Model of the gift
                },
            }
        },
        Decorate = {
            ProgressTime = 5000,                 -- [int] - Time of the progress bar
            ProgressText = 'Decorating tree...', -- [string] - Text of the progress bar
            Animation = {
                Dict = 'mp_car_bomb',
                Name = 'car_bomb_mechanic'
            },
            Required = {
                { item = 'xmas_star',  amount = 1 }, -- [table] - Required items to decorate the tree
                { item = 'xmas_decor', amount = 3 },
            }
        },
        Control = {
            Radius = 2.0,
            HelpText = {        -- Works only with Target.NONE
                Enabled = true, -- [true/false] - Enables help text.
            },
            Decorate = {
                Text = '~INPUT_CONTEXT~ Decorate tree', -- [string] - Help text.
                Target = {
                    label = 'Decorate tree',
                    icon = 'fa-solid fa-paint-roller', -- https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free
                },
            },
            GiftsStash = {
                Text = '~INPUT_CONTEXT~ Open gifts stash',
                Target = {
                    label = 'Open gifts stash',
                    icon = 'fa-solid fa-gifts',
                },
            },
            Delete = {
                Text = '~INPUT_CELLPHONE_OPTION~ Delete tree',
                Target = {
                    label = 'Delete tree',
                    icon = 'fa-solid fa-trash-alt',
                },
            },
        },
        Notifications = {
            Error = 'An error occurred while building the tree!',
            InventoryError = 'An error occurred while manipulating with your inventory!',
            PersistLimit = 'You have too many trees built! Destroy one of them first!',
            TreeBuilt = 'You built the tree!',
            StashOnlyGifts = 'You can only put gifts in the stash!',
            NotFree = 'You can not do any other activities / sit in vehicle during building tree!',
            Interior = 'You can not build a tree in an interior!',
            AlreadyBuilding = 'You already building a tree!',
            Cancelled = 'You cancelled building the tree!',
            Failed = 'You can not build here!',
            TreeDestroyed = 'You destroyed the tree!',
            TreeDecorated = 'You decorated the tree!',
            EnoughItems = 'You do not have enough items to decorate the tree!',
            DecorateFailed = 'You cancelled decoration of the tree!',
        }
    },

    Gifts = {
        Enabled = true,                        -- [true/false] - Enables gifts packaging
        Item = 'xmas_gift',                    -- [string] - Item to start packaging
        PackedItem = 'xmas_packed_gift',       -- [string] - Item to receive after packaging
        PackedItemDescription = 'Nametag: %s', -- [string] - Description of the gift in the inventory (%s is used for the nametag)
        Command = 'packgift',                  -- [string] - Command to start packaging
        Inventory = {
            UnpackedTitle = 'Unpacked Gift',   -- [string] - Title of the unpacked gift for preparing gift
            PackedTitle = 'Gift (%s)',         -- [string] - Title of the packed gift (%s is used for the nametag)
            Slots = 5,
            MaxWeight = 1000.0,
        },
        Unpack = {
            WaitForChristmas = true, -- [true/false] - Players can open packed gifts only after specified date
            Date = {
                day = 24,
                month = 12,
            }
        },
        Notifications = {
            NoItem = 'You do not have any gifts to pack!',
            NoGifts = 'You do not have any items in unpacked gifts!',
            NotAdded = 'Packed gift can not be added to your inventory! Do you have space?',
            NotChristmas = 'You can open packed gifts only after / during Christmas!',
            Unpacked = 'You unpacked the gift!',
            Packed = 'You packed the gift!',
        }
    },

    Snowman = {                             -- [table] - Snowman building
        Enabled = true,                     -- [true/false] - Enables snowman building
        Command = 'snowman',                -- [string] - Command to start building
        Model = `xm3_prop_xm3_snowman_01a`, -- [hash] - Snowman model
        Place = {                           -- [table] - Snowman placing
            Radius = 1.0,                   -- [float] - Radius of the parts building area (Work only with Target.NONE)
            HelpText = {                    -- Works only with Target.NONE
                Enabled = true,
                Text = '~INPUT_CONTEXT~ Complete %s part~n~~INPUT_VEH_HEADLIGHT~ Cancel building',
            },
            Target = {
                label = 'Complete %s part',
                icon = 'fa-solid fa-hammer', -- https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free
            },
            CancelTarget = {
                label = 'Cancel building',
                icon = 'fa-solid fa-times',
            },
        },
        FireDestroyable = true, -- [true/false] - Is the fire destroyable?
        Notifications = {       -- [table] - Notifications
            Error = 'An error occurred while building the snowman!',
            InventoryError = 'An error occurred while removing the required items from your inventory!',
            EnoughtItem = 'You do not have enough items to build this part!',
            PartNotFound = 'Part not found!',
            PartBuilt = 'You built the %s part!',
            SnowmanBuilt = 'You built the snowman!',
            NotFree = 'You can not do any other activities / sit in vehicle during building snowman!',
            Interior = 'You can not pick up snowballs in an interior.',
            AlreadyBuilding = 'You already building a snowman!',
            Cancelled = 'You cancelled building the snowman!',
            Failed = 'You can not build here!',
        },
        BuiltModel = `xm3_prop_xm3_snowman_01a`,
        Plan = {                                  -- [table] - Snowman building plan / "blueprint"
            ['Body'] = {                          -- [string] - Part name
                Body = true,                      -- [true/false] - Is this part the body?
                Model = `bzzz_maku_snowmen_body`, -- [hash] - Part model
                Required = {                      -- [table] - Required items to build this part
                    { item = 'WEAPON_SNOWBALL', amount = 5 },
                },
                Next = {
                    ...
                }
            },
        }
    }
}
PreviousInstallationNextInventory Items

Last updated 1 year ago

Was this helpful?

🎁