txAdmin Recipes
txAdmin recipes describe initial server deployment tasks: download resources, create directories, generate configuration and optionally connect to and populate a SQL database. Available recipe templates and their components change over time; inspect the recipe you actually selected.
Which recipe should you choose?
| Recipe type | Typical use | Database |
|---|---|---|
| FiveM Basic Server (CFX Default) | First server, connection tests, vanilla scripts | Not required |
| QBCore | Roleplay framework with character and economy persistence | Required by its recipe |
| ESX Legacy | ESX-based roleplay with persistent player data | Required by its recipe |
| Qbox / others | Framework-specific servers | Follow the selected recipe’s requirements |
Framework availability in the Popular Recipes list may change. Use the official publisher’s recipe link when a desired template is not listed; verify the repository owner and README first.
Deploy to a clean profile
- Install FXServer with txAdmin and link your Cfx.re account.
- Create a fresh profile or staging directory. Back up an existing installation before any migration.
- Select Popular Recipes or a trusted Remote URL Template supported by your txAdmin version.
- Review the steps, dependencies, file destinations and permissions. A recipe may download executable code.
- Provide the Cfx.re registration key , and database credentials only when required.
- Select Run Recipe and inspect any failed task rather than repeatedly overwriting the same directory.
- Review the generated
server.cfgand select Save & Run Server. - Confirm joining, spawning and persistence; for database-backed recipes, also reconnect and verify saved state.
The official QBCore recipe is one example of why a framework recipe is more than a core-resource git clone: it includes many companion resources and schema imports.
Updating an existing server
Do not re-run a whole installation recipe over modified production data to “update” it. A recipe may replace configuration, resources or SQL data. There is no universal safe “Skip vs Overwrite” dialog for every task.
Instead:
- Record the installed versions, dependencies and custom patches.
- Take a restorable backup of
txData, resources, configs and any external SQL database. - Review upstream changelogs and version compatibility.
- Test updated resources on a staging copy and run required schema migrations deliberately.
- Deploy a known revision, restart affected resources through txAdmin and test.
- Keep the previous revision and a database recovery point ready.
For updates in Git, work on your own deployment repository and review upstream changes per resource. Do not run git remote add upstream ... from an arbitrary resources directory and merge a framework repository into all server resources; those directory layouts are not interchangeable.
Example custom recipe structure
The official recipe engine documents actions such as download_github, connect_database and query_database. It does not document a generic import_database action in the current recipe schema.
A minimal illustrative recipe without SQL:
$engine: 3
name: Example CFX resources
version: 1.0.0
author: Example
description: Example for a clean test profile
tasks:
- action: download_github
src: https://github.com/citizenfx/cfx-server-data
ref: master
subpath: resources
dest: ./resources/[cfx-default]This is an illustration, not a complete startable server: it does not create a server.cfg, registration-key configuration or all the game-server prerequisites. For a complete install, use the CFX recipe. For SQL, use connect_database before query_database, as described by upstream.