txAdmin Recipes
Recipes are pre-configured templates that install frameworks and essential resources with one click. They are the easiest way to set up a new server.
Available Recipes
QBCore
Modern, feature-rich framework with active development.
- Includes: QBCore framework, qb-phone, qb-inventory, and essential jobs.
- Best for: Most roleplay servers.
ESX Legacy
The classic framework, widely supported.
- Includes: ESX framework, basic jobs, and essentials.
- Best for: Servers wanting compatibility with older scripts.
Qbox
A modern, performance-oriented fork/rewrite of QBCore.
- Includes: Qbox framework, updated ox_lib integration.
- Best for: Developers wanting modern Lua features and performance.
Installing a Recipe
- Fresh Install: Open txAdmin web interface on a new server.
- Deployment Page: Navigate to the “Deployment” tab.
- Select Recipe: Choose your desired framework.
- Configure: Fill in database details and license key.
- Run: Click “Run Recipe” and wait.
Updating Recipes & Handling Diffs
txAdmin recipes are primarily for initial setup. They do not have a “magic update” button that safely patches your modified files.
The Update Problem
If you re-run a recipe on an existing server:
- It tries to download the latest version of files.
- It might overwrite your configurations (
config.lua) or custom code. - It might conflict with new resources you added.
Recommended Update Workflow
Do not rely on the recipe deployer for updates. Instead, use Git.
- Version Control: Keep your
resourcesfolder in a Git repository. - Upstream Remote: Add the framework’s repository as a “remote”.
git remote add upstream https://github.com/qbcore-framework/qb-core.git - Pull Updates:
git fetch upstream git merge upstream/main - Resolve Conflicts: Git will show you exactly what lines changed, allowing you to keep your config values while getting the new logic.
Using Recipe Deployer (If you must)
If you decide to re-run a recipe to “reset” or update a specific part:
- Backup: Full backup of DB and files.
- Select “Skip”: When prompted about existing files, select “Skip” for files you know you’ve modified (like
server.cfgorshared/config.lua). - Select “Overwrite”: Only for core resources you haven’t touched.
- Review: Check
server.cfgfor duplicateensurelines.
Custom Recipes
You can create custom recipes to automate your own server deployments (e.g., for spinning up dev instances).
Structure of a recipe.yaml:
name: My Custom Server
author: Me
tasks:
- action: download_github
src: my-org/my-repo
dest: ./resources
- action: connect_database
- action: import_database
file: ./system/db.sqlRefer to the txAdmin Recipe Documentation for full syntax.