Get started
Installation
Five minutes from download to the first event.
011. Add the resources
- Open portal.cfx.re → Assets → Granted Assets. You will find two assets there: uniqers-christmas and uniqers-lib. uniqers-lib comes with your purchase.
- Download both and unzip them.
- Put the
uniqers-libanduniqers-christmasfolders in yourresourcesfolder. Do not rename them: the interface talks to the resource by its name. - Add them to
server.cfgafter your framework, inventory and oxmysql. uniqers-lib must start before uniqers-christmas:
set sv_enforceGameBuild 3095 # or newer: the Christmas props need itensure oxmysqlensure PolyZoneensure qb-core # or qbx_core / es_extendedensure ox_inventory # your inventoryensure uniqers-libensure uniqers-uipack # optionalensure uniqers-christmasIf you already run another Uniqers script, uniqers-lib is already there: keep one copy, the newest one.
022. Database
Nothing to do. On start the script creates every table it needs and adds any missing column to players_christmas. uniqers-christmas-database.sql is still in the folder if you prefer to import it yourself.
033. Items and images
Add the seven items (see Items and inventory) and copy the PNG files from uniqers-christmas/inventory_images/ into your inventory's image folder.
044. Set the season
Open config.lua and check these first:
Config.Locale = "en" -- en, tr, de, fr, es, pt-br, it, nl, pl, ru, zh-cn, ja, ko, arConfig.EventResetTime = { ... } -- the New Year moment (server time)Config.InventoryImagePath = "https://cfx-nui-qb-inventory/html/images/"The framework, the inventory and the staff groups are set once in uniqers-lib/config.lua (UQConfig.Framework = "auto" finds QBox, QBCore or ESX). Leave it as it is unless your core is renamed.
Config.EventResetTime is the end of the season: the countdown, the lottery draw and the team race reward run at this moment. Set a new date every season; it also resets the team scores, the last lottery result and the old tickets.
055. Staff access
The admin panel opens for anyone with the command ace, the groups in UQConfig.Staff (uniqers-lib) and the groups in Config.StaffPermissionNames (QBCore permission or ESX group).
066. First start
Start the server and check the console:
[uniqers-lib] v1.0.0 ready, framework: qbcore[uniqers-christmas] uniqers-lib 1.0.0, framework: qbcore[uniqers-christmas] database readyThen in game:
Start any event from Admin panel → Live test to see it working before your players do.
07Updating
Replace every file except config.lua, server_config.lua and the locales/ you changed. The database updates itself on the next start. Read the Changelog for new config options.
From 1.4.0 the script needs uniqers-lib: download it from your Granted Assets as well and add ensure uniqers-lib above ensure uniqers-christmas.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord