Installing ESX Legacy
This guide covers installing ESX Legacy using txAdmin — the recommended method for deploying a stable FiveM server with the ESX framework.
What is ESX Legacy?
ESX Legacy is the official, actively maintained version of the ESX framework. It provides a complete roleplay foundation including jobs, inventory, housing, and banking systems.
Before You Begin
Ensure you have the following ready:
| Requirement | Details |
|---|---|
| cfx.re Account | Required for server registration and license keys. Create one → |
| MariaDB | ESX requires a MySQL-compatible database. Download MariaDB → |
| Windows PC or Server | This guide covers Windows installation |
| ~10 GB free disk space | For server artifacts, resources, and database files |
Do not use XAMPP. It is outdated, unstable for production servers, and has been known to cause data loss. Use MariaDB only.
Step 1: Download Server Artifacts
Server artifacts are the core files that power your FiveM server.
- Go to artifacts.jgscripts.com

- Click Windows to automatically download the latest recommended artifacts

- Extract the archive to a permanent location
Recommended:C:\FiveM Server\orDocuments\FiveM Server
Choose your server location carefully. Moving the folder later requires updating multiple absolute paths in server.cfg and txAdmin.
Step 2: Run Initial Setup
- Open your extracted server folder and locate
FXServer.exe
- Run
FXServer.exe- If your antivirus flags the file, it is a false positive. Add an exception and allow it to run.
- A browser tab will open with the txAdmin setup wizard
- Click Link Account and sign in with your cfx.re credentials

- Create a Backup Password in case you are ever logged out of your cfx.re account

- Click Next
Step 3: Configure Server Details
- Enter your Server Name — this appears publicly in the FiveM server list

- For Deployment Type, select Popular Recipes

- Choose ESX Legacy from the recipe list

- When prompted for the Resource Path, change the default to a dedicated folder for easier management

- Ensure the folder exists at the location you specify before continuing

txAdmin will not create missing directories automatically. Create the folder beforehand to avoid deployment errors.
Step 4: Connect the Database
ESX stores all player data, inventories, jobs, and vehicles in MariaDB.
- Confirm MariaDB is installed and the MySQL service is running
- In txAdmin, open the Recipe Deployer

- Enter your database credentials:
- Host:
localhost - Port:
3306 - User: Your MariaDB username (e.g.,
root) - Password: Your MariaDB password
- Database:
esx_legacy(or your preferred name)
- Host:
Step 5: Add Your License Key
A valid CFX license key is required for your server to accept connections.
- On the Review Recipe page, locate the license key field

- Visit portal.cfx.re/servers/registration-keys
- Generate a new key and copy it
- Paste the key into txAdmin and click Next
Never share your CFX license key. Keys are tied to your account and server identity. Sharing them violates CFX terms of service and can compromise your server.
Step 6: Deploy
- Click Run Recipe to start the automated ESX Legacy deployment
- Review the generated
server.cfgto adjust max players, server tags, and locale as needed - Click Next to finalize

Your ESX Legacy server is now installed.
Post-Installation Checklist
- Start the server and verify it appears in the FiveM server list
- Join locally via
localhost:30120to test character creation and core features - Bookmark your txAdmin URL for ongoing server management
- Create a dedicated MariaDB user for ESX instead of using
root(security best practice)
Troubleshooting
| Issue | Cause & Solution |
|---|---|
Antivirus blocks FXServer.exe | False positive. Add your server folder to antivirus exclusions. |
| Database connection failed | MariaDB service is not running, or credentials are incorrect. Check Windows Services and verify your password. |
| License key rejected | Key is invalid or belongs to another account. Generate a fresh key at portal.cfx.re. |
| Recipe deployment fails | Resource path does not exist, or txAdmin lacks write permissions. Run as administrator if needed. |
| Server not visible in list | Invalid license key, or port 30120 is blocked by Windows Firewall. |
Next Steps
Once your server is running, you can:
- Add Jobs & Gangs — Configure
esx_jobsor install compatible job scripts - Import Vehicles — Add vehicle packs via
esx_vehicleshopor standalone resources - Install Addons — Browse housing, phone, and banking scripts from the ESX ecosystem
- Optimize Performance — Review
server.cfgtick rates and monitor resource load order
Need help with a specific ESX addon? Check the dedicated documentation sections for individual resources on this site.