> ## Documentation Index
> Fetch the complete documentation index at: https://ugcore.urging.ch/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy with txAdmin

> Set up a complete UgCore server in a few minutes with the official txAdmin recipe.

The UgCore recipe builds a ready server from txAdmin's Server Deployer: every UgCore resource from its latest release, the database, and a `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](https://ugcore.urging.ch/installation.md) 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](https://portal.cfx.re).

## Deploy

**1. Open the deployer**

In txAdmin's server setup, pick **Remote URL Template** as the deployment type. Deploy into a new, empty folder.

**2. Paste the recipe URL**

```text theme={"dark"}
https://raw.githubusercontent.com/ugcore-project/txAdminRecipe/main/ugcore.yaml
```

**3. Review the recipe**

txAdmin shows the recipe before it runs it. You MAY change `gameBuild` at the top, or delete the block of a resource you do not want. Every block is commented.

**4. Enter the license key and database**

The deployer asks for the license key and the database host, user, password and name. It writes them to `secrets.cfg` and adds your txAdmin account to `group.admin`.

**5. Start the server**

ug-core prints its banner, creates its tables and generates its config files. The server is ready when the console shows:

```text Server console theme={"dark"}
[INFO] ug-core v1.0.0 ready in 61 ms. 15 modules enabled.
```

Run `ug status` and `ug modules` in the console to check it.

## What you get

```text theme={"dark"}
server.cfg          network, slots and game build, then runs the files below in order
secrets.cfg         license key, database and the ug-admin webhook. Never share or commit it
convars.cfg         FXServer protection, Steam, oxmysql, pma-voice, ug-core and ug-lib settings
permissions.cfg     ug-core's ACEs and your staff
resources.cfg       the resources that start, in order
.gitignore          keeps secrets.cfg and runtime files out of git
resources/
├── [cfx]/          mapmanager, spawnmanager
├── [standalone]/   oxmysql, pma-voice
├── [ug]/           ug-lib, ug-core, ug-multicharacter, ug-appearance, ug-hud, ug-target, ug-inventory, ug-admin
└── [local]/        your own resources
```

> [accordion] 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](https://ugcore.urging.ch/reference/convars.md).

> [accordion] 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.

> [accordion] Least privilege for ug-core
>
> ug-core gets the four ACE commands it runs, `add_ace`, `remove_ace`, `add_principal` and `remove_principal`, instead of every command.

> [accordion] No basic-gamemode
>
> It turns spawnmanager auto-spawn back on. ug-core owns spawning, and ug-multicharacter places players.

> [accordion] Categories
>
> `ensure [ug]` starts every UgCore resource after `ug-lib` and `ug-core`. Removing one never breaks the start.

## After the first start

**1. Set your server listing**

Name, description, tags, locale, banners and icon are set in the [Cfx Portal](https://portal.cfx.re/servers), not in cfg files.

**2. Make yourself founder**

The recipe makes your txAdmin account an admin. Join the server, then promote yourself from the server console with your server ID:

```text theme={"dark"}
setgroup 1 founder
```

See [ug-admin installation](https://ugcore.urging.ch/ug-admin/installation.md) and [Permissions](https://ugcore.urging.ch/owners/permissions.md).

**3. Add the Discord audit log**

Paste a Discord webhook URL into `set ug-admin:Webhook ""` in `secrets.cfg`. Every staff action and report is posted there.

**4. Tune your settings**

Change values in `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 in `resources/[local]` and uncomment `ensure [local]` at the end of `resources.cfg`. Start from [ug-template](https://github.com/ugcore-project/ug-template) for a resource that follows UgCore's conventions.

## Updating

Download the new release of a resource and extract it over its folder in `resources/[ug]`. Each archive ships `config/` empty, so your config stays. Restart the server: ug-core runs new migrations on start. See [Installation](https://ugcore.urging.ch/installation.md#updating).

> [!WARNING]
>
> Never delete a resource folder before extracting the update: that deletes its config too.

## Troubleshooting

> [accordion] The deployer fails to download a ug resource
>
> The recipe downloads `releases/latest/download/<name>.zip`. Check that GitHub is reachable from the machine, then run the deployer again in an empty folder.

> [accordion] 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.

> [accordion] 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.

See [Troubleshooting](https://ugcore.urging.ch/owners/troubleshooting.md) for ug-core boot errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.