Tutorials & Guides

Installing and Setting Up Your FiveM Server Template

complete server install

We’re excited to help you get started with your new FiveM server. This guide will walk you through the entire process of downloading, installing, and setting up your FiveM server template.

If you purchased a complete server from our site, and don’t know how to install it – this tutorial is for you.


Why Choose a Full Server Template from FiveMX.com?

Our FiveM server templates are designed to save you time and effort.
They come pre-configured with essential scripts, mods, and settings, so you can focus on building your community and enjoying the game.
Here’s why our templates are the best choice:

  • Everything Included: Scripts, mods, maps, and configurations are pre-installed.
  • Easy Setup: No technical expertise required—just follow this guide.
  • Ongoing Support: We provide updates and support to keep your server running smoothly.
  • Customizable: Tailor the server to your needs with minimal effort.

Step 1: Downloading Your Server Template

Screenshot of the Account Page
  1. Log in to Your FiveMX.com Account:
  2. Download the Template:
    • Locate your purchased server template and click the “Download” button.
    • The template will be downloaded as a .zip file. Save it to a location on your computer where you can easily access it.

Step 2: Preparing Your Server

Before installing the template, ensure your server environment is ready.

  1. Set Up a FiveM Server:
  2. Install Required Software:
    • Database: Install MySQL or MariaDB on your server. You’ll need this for storing player data and other information.
    • PHPMyAdmin (Optional): For easier database management, install PHPMyAdmin.
    • Visual C++ Redistributables: Ensure you have the latest Visual C++ Redistributables installed on your server machine.

Step 3: Installing the Server Template

  1. Extract the Template Files:
    • Locate the .zip file you downloaded from FiveMX.com (you’ve downloaded it in step 1)
    • Extract the contents of the .zip file to your FiveM server’s resources folder. This folder is typically located in the server-data directory of your FiveM installation.
  2. Configure the Server:
    • Open the server.cfg file in your FiveM server directory using a text editor (e.g., Notepad++).
    • Ensure all options are as you want them to be set.
  3. Set Up the Database:
    • Open PHPMyAdmin or your preferred MySQL management tool. We recommend HeidiSQL (it’s free)
    • Create a new database for your FiveM server.
    • Import the SQL file included in your template (usually named database.sql or similar) into the this database.
    • Update the database connection details in the template’s configuration files. Look for a file named config.luaconfig.json, or similar, and update the following fields:luaCopyhost = “localhost” user = “your_database_username” password = “your_database_password” database = “your_database_name”
  4. Configure Essential Settings:
    • Open the server.cfg file again and update the following settings:
      • sv_hostname: Your server’s name.
      • sv_maxClients: Maximum number of players.
      • sv_licenseKey: Your FiveM license key (if applicable).
      • sv_master1: Set to master.fivem.net for server listing.

If you want to adjust more settings, we can also provide help here.


Step 4: Starting Your Server

For Windows Users:

  1. Launch the Server:
  • Open the run.cmd file in your FiveM server directory. This is typically located in the server-data folder.
  • Double-click the run.cmd file to start the server. A command prompt window will open, displaying the server startup process.
  1. Verify the Server is Running:
  • Watch the command prompt window for any errors or warnings. If everything is set up correctly, you’ll see messages like Resource [resource_name] started for each resource.
  • Open the FiveM client on your computer and connect to your server by entering the server’s IP address and port in the “Direct Connect” option.

For Linux Users:

  1. Launch the Server:
  • Open a terminal window and navigate to your FiveM server directory using the cd command. For example:
    bash cd /path/to/your/server-data
  • Run the following command to start the server:
    bash ./run.sh
  1. Verify the Server is Running:
  • Check the terminal output for any errors or warnings. If the setup is correct, you’ll see messages indicating that resources are loading successfully.
  • Open the FiveM client on your computer and connect to your server by entering the server’s IP address and port in the “Direct Connect” option.

This step ensures your server is up and running, ready for you and your community to enjoy!


Step 5: Customizing Your Server

  1. Add or Remove Resources:
    • To add new resources, place them in the resources folder and add ensure resource_name to your server.cfg file.
    • To remove resources, delete the corresponding folder and remove the ensure line from server.cfg.
  2. Edit Configuration Files:
    • Most templates include configuration files (e.g., config.lua) where you can customize settings like job roles, vehicle spawns, and more.
  3. Install Additional Mods:
    • Download mods from trusted sources and add them to your server following the same process as the template resources.

Step 6: Managing and Maintaining Your Server

  1. Regular Backups:
  2. Stay Updated:
    • Check FiveMX.com for updates to your server template. We regularly release updates with new features and bug fixes.
  3. Community Support:
    • Join the FiveMX.com Discord or support forum for help from our community and support team.

Troubleshooting Common Issues

  • Server Not Starting: Check the server console for error messages. Ensure all dependencies (e.g., MySQL) are running.
  • Database Connection Issues: Verify the database credentials in your configuration files.
  • Resources Not Loading: Ensure all resources are correctly named in the server.cfg file.

We also provide help on our troubleshooting section, check it out here!


Server installed

Congratulations! Your FiveM server is now up and running with the template from FiveMX.com. Enjoy your new server and start building your community today. If you have any questions or need further assistance, don’t hesitate to reach out to our support team.

Have fun with your gaming server!
– The FiveMX.com Team

author-avatar

About Luke

I'm Luke, I am a gamer and love to write about FiveM, GTA, and roleplay. I run a roleplay community and have about 10 years of experience in administering servers.

Leave a Reply