Free FiveM Base 2024 - How to Create a FiveM Server
Introduction
In this tutorial, I'll show you how to create a FiveM server using a free SX base. The download link for the base will be available in our Discord channel, which is linked in the video description. This base, created by "Boina Verde," will be demonstrated here, and I'll guide you through the installation process.
Step 1: Prerequisites
Before we begin, you need to install a few essential programs:
- XAMPP - A free and open-source cross-platform web server solution stack package developed by Apache Friends.
- Text Editor - You can use Notepad or Visual Studio Code (recommended).
Installing XAMPP:
- Download XAMPP from its official website.
- Run the installer and follow the prompts to complete the installation.
Installing Visual Studio Code:
- Download Visual Studio Code from its official website.
- Run the installer and follow the prompts to complete the installation.
Step 2: Setting Up the Server
Download the Base:
- Join the Discord server linked in the description and download the SX base file.
Prepare Your Workspace:
- Create a new folder on your desktop or any desired location.
- Extract the contents of the downloaded base into this folder.
Configure the Server:
- Open the
server.cfg
file located in theserver-data
folder using Visual Studio Code. - Modify the settings as required, such as setting the maximum number of players and configuring server resources.
- Open the
Important Configurations:
- Max Players: Ensure your server can handle the desired number of players. Note that custom clothing and features may require higher plans from FiveM's Patreon.
- Server License Key: Obtain this from the FiveM keymaster and paste it into the
server.cfg
.
Step 3: Registering and Obtaining Keys
Get Your Server License Key:
- Go to FiveM keymaster.
- Log in and create a new server key.
- Enter your server name, IP address, and other details, then generate the key.
- Copy this key and paste it into the
server.cfg
file under thesv_licenseKey
entry.
Steam Web API Key:
- Go to the Steam API Key registration page.
- Log in with your Steam account and generate an API key.
- Copy this key and paste it into the
server.cfg
file under thesteam_webApiKey
entry.
Step 4: Importing the Database
Start XAMPP:
- Open XAMPP Control Panel.
- Start Apache and MySQL services.
Access phpMyAdmin:
- Open your browser and go to
http://localhost/phpmyadmin
. - Create a new database.
- Open your browser and go to
Import the SQL File:
- Select the new database and click on the
Import
tab. - Choose the
boina_verde.sql
file from the extracted base files. - Click on
Go
to import the database.
- Select the new database and click on the
Step 5: Running the Server
Set File Paths:
- Open the
run.bat
file located in your server folder using a text editor. - Ensure the file paths match the location of your FiveM server files.
- Open the
Start the Server:
- Double-click on the
run.bat
file to start the server.
- Double-click on the
Step 6: Connecting to the Server
- Open FiveM:
- Launch FiveM on your computer.
- Connect to Your Server:
- Use the direct connect option and enter your server's IP address.
Step 7: Admin Commands and Setup
Creating Your Character:
- Follow the in-game prompts to create your character.
Admin Commands:
- Set yourself as an admin using in-game commands or through the database.
- Example commands:
setgroup [your ID] admin
- Sets your admin group.giveitem [your ID] weapon_pistol 1
- Gives you a pistol.
Conclusion
You have now successfully set up a FiveM server using the free SX base. Feel free to explore and customize your server further. If you have any questions or need additional help, leave a comment or join the Discord server linked in the description. More tutorials and free bases will be shared, including how to create and customize your own FiveM server from scratch.