Requirements
FXServer with OneSync
ug-core declares /onesync as a dependency and refuses to start without it.oxmysql
The only resource
ug-core depends on. Start it before ug-core.MySQL 8.0 or MariaDB 10.6+
Older servers abort boot with a clear message.
Lua 5.4
Every resource that imports UgCore MUST set
lua54 'yes'.Install
1
Download ug-core
Clone or download the repository into your resources folder:
2
Configure server.cfg
Add the database connection, start
oxmysql before ug-core, and let ug-core manage ACEs:server.cfg
3
Start the server
On the first start, ug-core prints its banner, generates every config file and creates its tables:
Server console
4
Check it
What happens on first boot
Config files are generated
Config files are generated
Every missing
config/<name>.lua is written with each option’s description, type, limits and default. ug-core never edits these files again. Delete one to restore its defaults.Tables are created
Tables are created
Each enabled module applies its migrations in version order. Applied versions are tracked in
ug_migrations.Connections wait for Ready
Connections wait for Ready
Players who connect during boot see “The server is starting. Please wait.” until ug-core is ready, for at most 60 seconds.
If boot fails
ug-core collects every configuration and database error, prints them all, then stops cleanly:restart ug-core. See Troubleshooting for common errors.
Next: build your first resource
Write a resource that uses UgCore in five minutes.