Skip to main content
ug is a server console command for looking inside UgCore. It works from the server console, and in game for players with the ug.admin ACE. Output always goes to the server console.
server.cfg

Subcommands

ug modules

Every installed module, whether it is enabled, and why.
Resolved values of a config and where each came from: default, file or the convar.
Without a name, it lists every config.
Every lifecycle state with the time spent in the previous one.
Database server version, applied migrations per module, and cache usage.
A player’s Guard score and recent flags with their details.
Every group from config/permissions.lua, highest weight first, with its member count.
A loaded inventory by player id or inventory id: weight, slots and every item.
Every item definition, or the details of one.
Every shop, or the prices and stock of one.
The weapon a player has equipped, with its serial, ammo and durability.
The needs of a player with a loaded character. Without an id, the number of players with needs.
Every registered hook, with the resource that registered it and its priority.
Checks GitHub again for the latest ug-core release. The answer prints when it arrives, within 3 seconds.

Version check

On server start, ug-core asks GitHub for its latest release and shows the result next to its version in the boot banner:
The banner also welcomes your server by sv_projectName (or sv_hostname), and shows the FXServer build, your slots and the enforced game build, which help when you ask for support. The check runs once per server start, not on restart ug-core. Pre-releases are ignored. Boot waits for it at most 3 seconds. It runs before config loads, so you turn it off with a convar only, for example on servers without internet access:
server.cfg

Debug output

Turn on debug logs in config/core.lua or with a convar:
server.cfg
Debug lines show rejected requests, dropped spoofed events and other details. They also appear in client F8.