FiveM is a popular multiplayer modification framework for Grand Theft Auto V, allowing you to play on customized multiplayer servers with unique game modes, vehicles, scripts, and communities. Unlike GTA Online, FiveM lets server owners create their own rules, mods, and experiences, from roleplay to racing and more.
A FiveM server is a dedicated or virtual server that runs the FiveM software, hosting custom multiplayer worlds for players to join. Server owners can control everything—from the map and mods to player permissions and scripts—enabling unique gameplay experiences. Hosting your own FiveM server gives you full control over your community, rules, and content.
Complete guide to hosting your FiveM server in India with the best hosting providers, step-by-step setup instructions, and optimization tips for Indian players.
Hosting your FiveM server in India provides several advantages for Indian players. Lower ping times, better connection stability, and compliance with local regulations make it the preferred choice for serious server owners targeting the Indian gaming community.
10-50ms ping for Indian players
Follows Indian data protection laws
Support in Indian time zones
After comparing many providers for price, hardware, and reliability, I chose Hostinger for my VPS. Their Mumbai datacenter, great support, and easy dashboard made the decision simple. Here’s a quick look at why I picked them and what you get:
For this guide, we are installing Ubuntu 24.04 LTS as the server operating system. It's stable, secure, and widely supported for FiveM servers.
To connect to your server, you need an SSH client. In the video, we used Terminus, but you can also use PuTTY (Windows) or Terminus (cross-platform).
Recommended OS for FiveM servers. Select this when purchasing your VPS or dedicated server.
Use Terminus (used in video) or PuTTY to connect to your server securely.
Once your server is ready, connect via SSH and install the required packages. Let's start with the essential tools:
apt install wget
This installs wget, which we'll use to download FiveM server files.
apt install mariadb-server
MariaDB will store all your FiveM server data, player information, and configurations.
Now we need to configure MariaDB to allow remote connections and create a user for our FiveM server. This will let us manage the database remotely using tools like HeidiSQL.
nano /etc/mysql/mariadb.conf.d/50-server.cnf
This opens the MariaDB configuration file in the nano text editor.
Look for this line in the file:
bind-address = 127.0.0.1
Change it to:
bind-address = 0.0.0.0
To save this, Press CTRL+O and then Enter. Lastly CTRL+X to exit.
mysql
This connects you to the MySQL command line interface.
CREATE USER 'youruser'@'%' IDENTIFIED BY 'yourpassword';
Create a user that can connect from anywhere
GRANT ALL PRIVILEGES ON *.* TO 'youruser'@'%' WITH GRANT OPTION;
Grant all privileges to the user
FLUSH PRIVILEGES;
Apply the changes
sudo systemctl restart mariadb
This restarts MariaDB to apply the configuration changes.
1. Download and install HeidiSQL on your local computer
2. Connect using your server IP, username, and password
3. If it works, you're ready to continue. If not, restart the server and double-check the bind address
Now let's download and set up the FiveM server. We'll create a dedicated directory and get the latest server files from the official FiveM runtime.
mkdir FiveM
Creates a new directory called "FiveM" for our server files.
cd FiveM
Changes to the FiveM directory where we'll download the server files.
Visit FiveM Artifacts Page and copy the link of the latest build.
wget -O fx.tar.xz [PASTE_LATEST_LINK_HERE]
Downloads the latest FiveM server files and saves them as fx.tar.xz
tar -xf fx.tar.xz
Extracts all the FiveM server files from the downloaded archive.
ls
Lists all files in the directory. You should see the "run.sh" file among others.
./run.sh
If you run it directly like this, the server will stop as soon as you close the terminal or press Ctrl+C.
To keep your server running in the background, use tmux as shown below.
Step | Command / Keys | Description |
---|---|---|
Install tmux (if not installed - ONE TIME) | apt install tmux -y | Installs tmux if not already installed |
Start tmux session | tmux new -s fivem | Creates a new tmux session named fivem |
Run your FiveM server | ./run.sh | Start the server inside tmux |
Detach from tmux | Ctrl + B, then D | Leave tmux but keep server running |
Reconnect to the session | tmux attach -t fivem | Reopen your tmux session |
List all tmux sessions | tmux ls | See all running tmux sessions |
Kill the session (stop server) | tmux kill-session -t fivem | Stops the server and closes the tmux session |
• After running the server, you'll see a code in the terminal
• Open your browser and go to: your-server-ip:40120
• Paste the code from the terminal - this opens txAdmin
• Authenticate with your FiveM ID
After running the FiveM server, you'll get a setup code. This code is used to access txAdmin, which is the web-based management panel for your FiveM server.
Open your browser and navigate to:
your-server-ip:40120
Replace "your-server-ip" with your actual server's IP address.
Enter the code that appeared in your terminal when you ran ./run.sh
Log in using your FiveM/Cfx.re account credentials
Choose a unique name for your FiveM server
Choose QBCore for a full roleplay framework with jobs, housing, and economy
You'll need a server key from the FiveM portal. Visit: FiveM Server Registration
https://portal.cfx.re/servers/registration-keys
Click "Generate Key" and copy the generated registration key.
In txAdmin, click "Show/Hide Database Options" and enter your database details:
1. Open FiveM client on your computer
2. Press F8
to open console
3. Type: connect your-server-ip
4. You're now connected to your FiveM server!
Your FiveM server is ready with minimal ping. Enjoy seamless gameplay and have fun with your community!