Skip to content
Tutorial
Setup a Server
Installation

This section will cover the installation tutorial for the ESX Legacy Framework

Two methods of installation will be presented below, the method for setting up a server environment for windows and one for linux.

For support and assistance you can join our discord!

Please choose which Platform you use

Database Setup

To run a ESX Legacy Server you will need a Mysql Server as a database.

MariaDB Method

MariaDB is a community-developed, commercially supported fork of the MySQL database system improving performance and fixing bugs.

Installation of MariaDB

  1. Download and run the installer for MariaDB 10.11.4.
  2. Click on Next. (Screenshot)
  3. Accept the license agreement and click on Next. (Screenshot)
  4. Ensure that all options are selected for install and clock on Next. (Screenshot)
  5. Ensure that the checkbox for “Modify password for database user ‘root’” is selected, enter the same password in both boxes, and click on Next. (Screenshot)
  6. Accept the defaults and click on Next. (Screenshot)
  7. Click on Install and wait for the installation to complete. (Screenshot)
  8. If you receive a User Account Control prompt asking to allow the installation, click on Yes.
  9. Click on Finish. (Screenshot)

Download HeidiSQL

Download and follow the setup process:

Creating your FiveM Server database and user

  1. Open HeidiSQL which was installed with MariaDB.
  2. The Hostname/IP address should by default be 127.0.0.1 which should not be changed, unless you are connecting to the database from a different computer.
  3. Enter the username root with the password you set in step 5 from section 1.
  4. Click on Open.
  5. Right-Click on Localhost in the list on the left, hover over Create new and then click on Database.
  6. Type in a name for your database (we will use the example name testserver), then click on OK.
  7. Click on the Tools menu, then click on User Manager.
  8. Click on Add in the top-right corner (with the green plus sign next to it). This will create a new user.
  9. On the right side of the User Manager window, enter a username in the User name field, enter a password and repeat.
  10. Below the Repeat Password box, click on Add Object.
  11. Select the database and click on OK.
  12. The only permissions that are required for an ESX-based FiveM server are SELECT, ALTER, CREATE, DELETE, INSERT and UPDATE. Expand the database testserver, tick the boxes next to the permissions just mentioned, then click on Save.

Installing the Server

  1. Go to the FiveM Artifact Downloads page
  2. Download the most recent artifact version, see here for an example.
  3. Open the server.zip you just downloaded.
  4. Choose a location on your server where you want to store your files. We’ll use the example C:\fxserver (aka the Server Home folder).
  5. Extract the Zip file you downloaded to a folder within C:\fxserver with the name being whatever the build number is. For example, if you downloaded version 6721 the folder path would be C:\fxserver\6721.
  6. Now go into the 6721 folder and start the FXServer.exe. This will start the server and will create a start_6721_default.bat in your home folder, which you will use the next time you want to start the server.
  7. Once started a browser window will popup, it will ask you for a 4-digit code. If it’s not already filled look into the console that recently opened. Continue and log in using your cfx.re forum account.
  8. Then it should ask you for a password. Make sure this password is secure as this is one of the options on how you will log in into your txAdmin master account.

Installing the Server

  1. Assuming you are now on a menu similar to this, click Next.
  2. Enter a name for the server, and click on Next.
  3. For the deployment type, we will select Popular Templates. This will allow us to use the ESX Framework recipe to install the latest version of ESX along with other resources such as esx_policejob and esx_ambulancejob.
  4. Select ESX Legacy and press Save.
  5. It will ask you for a path where it should save your ressources. You can change it, but you can just let it stay default.
  6. Now Press Save and then Go To Recipe Deployer and then Next
  7. Enter your server License Key (which you can get from Keymaster) and click on Show/Hide Database options.
  8. For the database parameters, ensure that the Host and Port are localhost and 3306 respectively. Enter the database username and password you created in section 2 as well as the database name. Once entered, click on Run Recipe.
  9. Once the recipe has finished running, click on Done.
  10. You are now taken to a window containing the fresh version of your new server.cfg file. You can make changes as needed, however it’s strongly recommended to take a backup of the file first before doing so.
  11. Click on Save and Run Server to launch the newly-built server!

There we go! You have successfully installed and configured your first basic FiveM Server built on the ESX Framework. If you have any issues, please feel free to open a thread in the ESX Support forum on Discord where someone can give you a hand to troubleshoot.