How to Setup a RedM Server with RSG Core
- Published on
- • 4 mins read•--- views

Getting Started 🚀
Prerequisites
Before starting, you'll need:
- RDR2 or RDO (Both work for RedM) ⚠️ RDO is a cheaper option!
- Steam logged in (Required in all cases)
- Rockstar Launcher logged in (Only if purchased on Rockstar)
Required Software
For Windows:
- MariaDB (Version 10.11.2 Recommended)
- Get it from MariaDB Official Site
- HeidiSQL
- For database management (included in MariaDB download)
For Linux:
- MariaDB
- Install via terminal (see Linux section below)
- Screen (for running the server in the background)
- Install via terminal:
sudo apt-get install screen
- Install via terminal:
Windows Installation 💻
Step 1: Generate a Key
- Go to Keymaster and log in.
- Generate a key for your server.
Step 2: Download the Server
- Download the latest server build from the Windows artifacts page.

- Extract the
server.7z
file toC:\redm\server-files
.

Step 3: Start the Server
- Double-click
FXServer.exe
to start the server.

- A browser window will open for txAdmin setup. Follow these steps:
- Link your Cfx.re account.
- Set a password for the admin panel.
- Name your server.
- Select Remote URL Template and enter the RSG Core recipe URL:
https://raw.githubusercontent.com/Rexshack-RedM/txAdminRecipe/main/rsgcore.yaml
.
- Set the server data path to
C:\redm\server-data
.
- Enter the key you generated in Step 1.
- Run the recipe and wait for it to complete.
Step 4: Configure MariaDB
- Install MariaDB and HeidiSQL.
- Create a new database (e.g.,
rsg_core
). - Import the SQL file from the RSG Core recipe.
- Update the database credentials in the
config.lua
file:
Config = {
Database = {
Host = "localhost",
User = "root",
Password = "yourpassword",
Database = "rsg_core"
}
}
Step 5: Open Firewall Ports
Open the following ports on your firewall:
- Port 30120 TCP/UDP (for server connections)
- Port 40120 TCP/UDP (for txAdmin)
A video demo on how to setup/open ports can be found here.
Linux Installation 🐧
Step 1: Install MariaDB
- Update your system:
sudo apt-get update
- Install MariaDB:
sudo apt-get install mariadb-server
- Secure the installation:
sudo mysql_secure_installation
Step 2: Create a Database User
- Log in to MariaDB:
mysql -u root -p
- Create a new user and database:
CREATE USER 'user1'@'%' IDENTIFIED BY 'password1'; CREATE DATABASE rsg_core; GRANT ALL PRIVILEGES ON rsg_core.* TO 'user1'@'%'; FLUSH PRIVILEGES;
Step 3: Allow Remote Access
- Edit the MariaDB configuration file:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
- Change
bind-address
to0.0.0.0
. - Restart MariaDB:
sudo systemctl restart mariadb
Step 4: Open Firewall Ports
- Open port 3306 for MariaDB:
sudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
- Open ports 30120 and 40120 for the server:
sudo iptables -A INPUT -p tcp --dport 30120 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 40120 -j ACCEPT
Step 5: Download and Run Artifacts
- Download the latest Linux artifacts:
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/<latest-build>/fx.tar.xz
- Extract the artifacts:
tar -xf fx.tar.xz
- Start the server in a screen session:
screen -S redm ./run.sh
Step 6: Set Up txAdmin
Follow the same txAdmin setup steps as in the Windows section.
Additional Requirements
- XAMPP (Windows) or MariaDB (Linux) for database management.
- Artifacts: Download from FiveM Artifacts.
- RedM: Download from RedM Official Site.
Troubleshooting
Server Not Starting
- Check the
server.cfg
file for errors. - Ensure all required resources are installed.
Database Connection Issues
- Verify the database credentials in
config.lua
. - Ensure MariaDB is running and accessible.
Players Can’t Connect
- Check your firewall settings and ensure ports
30120
and40120
are open. - Verify that the server is running and not full.
Important Notes ⚠️
- Check the RSG Core GitHub for script updates.
- Some premade plugins may need updating.
- Keep your server files backed up.
- Regularly check for updates.
Conclusion
Congratulations! You’ve successfully set up a RedM server using RSG Core and the txAdmin recipe. Now you can customize your server, add scripts, and invite players to join your world. For more advanced configurations, refer to the RSG Core documentation.
Happy gaming! 🚀
Join Our Community!
Get help, share ideas, get free scripts, and connect with other RedM enthusiasts in our Discord server.
Join Discord Premium BLN Scripts
Table of Contents
- Getting Started 🚀
- Prerequisites
- Required Software
- For Windows:
- For Linux:
- Windows Installation 💻
- Step 1: Generate a Key
- Step 2: Download the Server
- Step 3: Start the Server
- Step 4: Configure MariaDB
- Step 5: Open Firewall Ports
- Linux Installation 🐧
- Step 1: Install MariaDB
- Step 2: Create a Database User
- Step 3: Allow Remote Access
- Step 4: Open Firewall Ports
- Step 5: Download and Run Artifacts
- Step 6: Set Up txAdmin
- Additional Requirements
- Troubleshooting
- Server Not Starting
- Database Connection Issues
- Players Can’t Connect
- Important Notes ⚠️
- Conclusion