server.cfg split into files that each do one job. It is the fastest way to start. To add UgCore to a server you already run, follow Installation instead.
Requirements
- txAdmin, which ships with every FXServer.
- MySQL 8.0 or MariaDB 10.6+, running. txAdmin creates the database when it does not exist.
- A license key from the Cfx Portal.
Deploy
Open the deployer
Paste the recipe URL
Review the recipe
gameBuild at the top, or delete the block of a resource you do not want. Every block is commented.Enter the license key and database
secrets.cfg and adds your txAdmin account to group.admin.Start the server
ug status and ug modules in the console to check it.What you get
Settings as convars
Settings as convars
convars.cfg lists every ug-core and ug-lib option that is not a table, set to its default: module switches, Guard thresholds, character slots, inventory size, UI positions and theme. A convar wins over the same option in config/. See Convars.Hardened by default
Hardened by default
sv_entityLockdown relaxed, sv_filterRequestControl 1, no networked sounds, no Script Hook, private endpoints and sv_pureLevel 1. Each line says what it does and when to change it.Least privilege for ug-core
Least privilege for ug-core
add_ace, remove_ace, add_principal and remove_principal, instead of every command.No basic-gamemode
No basic-gamemode
Categories
Categories
ensure [ug] starts every UgCore resource after ug-lib and ug-core. Removing one never breaks the start.After the first start
Set your server listing
Make yourself founder
Add the Discord audit log
set ug-admin:Webhook "" in secrets.cfg. Every staff action and report is posted there.Tune your settings
convars.cfg. Jobs, gangs, accounts, items, shops and other tables live in resources/[ug]/ug-core/config/. Each feature resource reads config.lua in its own folder.Adding your resources
Put your own resources inresources/[local] and uncomment ensure [local] at the end of resources.cfg. Start from ug-template for a resource that follows UgCore’s conventions.
Updating
Download the new release of a resource and extract it over its folder inresources/[ug]. Each archive ships config/ empty, so your config stays. Restart the server: ug-core runs new migrations on start. See Installation.
Troubleshooting
The deployer fails to download a ug resource
The deployer fails to download a ug resource
releases/latest/download/<name>.zip. Check that GitHub is reachable from the machine, then run the deployer again in an empty folder.Players with Steam cannot be told apart
Players with Steam cannot be told apart
steam_webApiKey no longer works. Players link Steam to their Cfx account instead. Uncomment sv_enforceSteamAuth true in convars.cfg to require it. It needs server build 38004 or newer. ug-core identifies players by license, so Steam stays optional.Voice range does not show in the HUD
Voice range does not show in the HUD
sv_stateBagStrictMode MUST stay off with pma-voice: pma-voice writes the voice range from the client.