Installation Guide
System Requirements
- Windows 10 or later (for Windows users)
- Ubuntu 20.04 or later (for Linux users)
Game Server Hosting Installation
Upload all files and folders from the
server-data
folder to your game hosting main folderModify the database name in your SQL file:
sqlCREATE DATABASE IF NOT EXISTS `your_database_name` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci */; USE `your_database_name`;
Replace
your_database_name
with the database name provided by your hosting panelDatabase Setup:
- Get database credentials from your game server hosting panel
- Download and install HeidiSQL
- Connect to your database using the hosting-provided credentials
- Import the ServerDatabase.sql file
Configure server.cfg:
- Update mysql_connection_string with the connection string from your hosting panel
- Ensure onesync infinity is enabled
Start your server and connect
Local Installation
Windows Installation
Database Setup
Download and install required software:
Configure Database:
- Start XAMPP and enable MySQL service
- Open HeidiSQL and create a new connection
- Import ServerDatabase.sql file
- Note: If you change the database name, update it in server.cfg
Server Configuration
Server Setup:
- Open CFX-files folder
- Run FXServer.exe
- Follow browser setup wizard
- At step 3, select "Local Server Data"
- At step 4, set server-data folder path
Configure Keys:
Final Setup:
- In txAdmin settings, set Onesync to Infinity
- Save settings and restart server
Linux Installation
Database Installation
Update System:
bashsudo apt-get update
Install MariaDB:
bashsudo apt-get install mariadb-server sudo mysql_secure_installation
Create Admin User:
sqlCREATE USER 'user1'@'%' IDENTIFIED BY 'password1'; GRANT ALL PRIVILEGES ON *.* TO 'user1'@'%' IDENTIFIED BY 'password1'; FLUSH PRIVILEGES;
Configure Remote Access
Edit MariaDB Configuration:
bashsudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Change bind-address to:
bind-address = 0.0.0.0
Restart MariaDB:
bashsudo systemctl restart mariadb
Open Required Port:
bashsudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
Server Setup
Download Artifacts:
bashwget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/14583-b4e669b9a0e75a1050780b6e86603a3e65b442fc/fx.tar.xz tar -xf fx.tar.xz
Run Server:
bash./run.sh
Post-Installation
- Configure permissions in permission.cfg
- Test server connection
- Configure additional server settings as needed
Troubleshooting
Common issues and solutions:
Database Connection Issues:
- Verify database credentials
- Check if MySQL/MariaDB service is running
- Confirm port 3306 is open
Server Start Issues:
- Verify all paths in server.cfg
- Check if required ports are open
- Review txAdmin logs for errors