terça-feira, 4 de junho de 2024

How to Create a FiveM Server from Scratch: Complete Guide for Beginners

How to Create a FiveM Server from Scratch: Complete Guide for Beginners


Introduction

In this tutorial, we'll learn how to create a FiveM server from scratch, configure scripts, and customize the server to your liking. At the end of the course, I will provide a free base for download so you can follow along with the tutorial. If you're not subscribed to the channel, make sure to subscribe for more tutorials and updates.

Step 1: Installing the Necessary Software

1.1 XAMPP

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. To install:

  1. Go to the official XAMPP website and download it.
  2. Run the installer and follow the steps (next, next, install).
  3. After installation, open XAMPP and click “Start” on the Apache and MySQL options.

1.2 Visual Studio Code

Visual Studio Code is a powerful and free text editor. To install:

  1. Go to the official Visual Studio Code website and download it.
  2. Run the installer and follow the steps (next, next, install).

Step 2: Setting Up the Server

2.1 Download and Set Up TXAdmin

  1. Go to the TXAdmin link in the official FiveM documentation.
  2. Download the recommended version.
  3. Extract the contents of the ZIP file to a folder of your choice (e.g., "base_server").
  4. Inside the extracted folder, run the fxserver.exe file.
  5. In the window that opens, click “Link Account” and create an account on the FiveM forum.
  6. Verify the account through the email sent.
  7. After verification, log in and create a password for the server administrator.
  8. Click “Next” and choose a name for the server.
  9. Select the SX Legacy server base.
  10. Save the file location and continue.

2.2 Creating the Server Key (Keymaster)

  1. Go to the Keymaster website.
  2. Click “Register a new server”.
  3. Enter a name for the server and the IP address (if using a VPS, use the VPS IP; otherwise, use your local computer's IP).
  4. In the server type, choose the “Other” option.
  5. Generate and copy the key.
  6. Paste the key into the appropriate field in the TXAdmin configuration.

Step 3: Database Configuration

  1. If using XAMPP, no changes to the database configuration are necessary.
  2. Click the green button to continue.

Step 4: Server File Configuration

  1. Set the server name, description, and the maximum number of players (clients).
  2. Choose the free option for up to 10 players, or purchase a subscription on the FiveM Patreon for more slots.
  3. Finalize the configuration and start the server.

Step 5: Connecting to the Server

  1. In the FiveM console, type connect localhost if hosting on your computer, or connect [VPS IP] if using a VPS.
  2. Open the firewall ports on your VPS:
    • Go to the advanced firewall settings.
    • Create new rules for TCP and UDP ports (30120).

Demonstration of the Final Result

After following all the steps, you should see the server running successfully. You can access the server in FiveM and start customizing it as desired.

Next Steps

In upcoming episodes, we will cover how to add and modify scripts, change the loading screen, and further customize the server. Leave comments on what you would like to learn so we can tailor the tutorials to your needs.

Conclusion

You have learned how to set up a FiveM server from scratch. Continue following the series to learn how to effectively customize and manage your server. Subscribe to the channel to not miss the upcoming videos!


Note: This guide is a starting point for beginners. Advanced customization and ongoing server management require additional knowledge that will be covered in future tutorials.

Nenhum comentário:

Postar um comentário