Skip to main content
ug-lib generates config/settings.lua and config/theme.lua on first start, with a description, type, limits and convar name above every option. It never edits them afterwards. Delete a file to restore its defaults. Precedence, lowest to highest: default, file, convar. An invalid value logs an error and uses its default, so ug-lib always starts.
Every value is sent to players. Never put secrets in these files.

config/settings.lua

Anchors are top-left, top, top-right, center-left, center, center-right, bottom-left, bottom and bottom-right.
Keys are defaults for FiveM key mappings. Players MAY rebind them in their FiveM key settings, under ug-lib.

config/theme.lua

Color tokens: background, foreground, card, cardForeground, popover, popoverForeground, primary, primaryForeground, secondary, secondaryForeground, muted, mutedForeground, accent, accentForeground, destructive, destructiveForeground, success, successForeground, warning, warningForeground, border, input, ring. An unknown token or a bad triplet is an error, and the whole table uses its default.
config/theme.lua

Convars

Settings use ug-lib:<Key>, theme options ug-lib:Theme:<Key>. Tables cannot be set by convar.
server.cfg

Console

uglib on the server console: uglib in F8, with debug = true:

Languages

Labels such as Confirm and Cancel come from locales/<locale>.json of ug-lib. Add a file with the same keys as locales/en.json to translate them.