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:
- Go to the official XAMPP website and download it.
- Run the installer and follow the steps (next, next, install).
- 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:
- Go to the official Visual Studio Code website and download it.
- Run the installer and follow the steps (next, next, install).
Step 2: Setting Up the Server
2.1 Download and Set Up TXAdmin
- Go to the TXAdmin link in the official FiveM documentation.
- Download the recommended version.
- Extract the contents of the ZIP file to a folder of your choice (e.g., "base_server").
- Inside the extracted folder, run the
fxserver.exe
file. - In the window that opens, click “Link Account” and create an account on the FiveM forum.
- Verify the account through the email sent.
- After verification, log in and create a password for the server administrator.
- Click “Next” and choose a name for the server.
- Select the SX Legacy server base.
- Save the file location and continue.
2.2 Creating the Server Key (Keymaster)
- Go to the Keymaster website.
- Click “Register a new server”.
- 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).
- In the server type, choose the “Other” option.
- Generate and copy the key.
- Paste the key into the appropriate field in the TXAdmin configuration.
Step 3: Database Configuration
- If using XAMPP, no changes to the database configuration are necessary.
- Click the green button to continue.
Step 4: Server File Configuration
- Set the server name, description, and the maximum number of players (clients).
- Choose the free option for up to 10 players, or purchase a subscription on the FiveM Patreon for more slots.
- Finalize the configuration and start the server.
Step 5: Connecting to the Server
- In the FiveM console, type
connect localhost
if hosting on your computer, orconnect [VPS IP]
if using a VPS. - 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