Skip to main content

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
Without add_ace resource.ug-core command allow, permission grants cannot be applied. ug-core reports it in red at boot.
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

Run these inspection commands from the server console:
See The ug console for every subcommand.

What happens on first boot

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.
Each enabled module applies its migrations in version order. Applied versions are tracked in ug_migrations.
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:
Fix the reported values and run restart ug-core. See Troubleshooting for common errors.

Next: build your first resource

Write a resource that uses UgCore in five minutes.