FiveM Server Manager for Linux [Yarpii] [Syslogine]

FiveM Server Manager

FiveM Server Manager is a Bash script designed to simplify the management of FiveM servers. Whether you’re setting up a new server, starting an existing one, or troubleshooting issues, this script provides a convenient interface to perform common tasks efficiently.

Features

Server Management

  • Server Creation: Quickly create new FiveM server instances with customizable configurations, including server name, resources, server data path, server port, and more.
  • Server Start: Start a designated FiveM server instance with a single command.
  • Server Stop: Gracefully shut down a running FiveM server to ensure data integrity.
  • Server Restart: Restart a running FiveM server instance without interrupting gameplay.
  • Server Update: Automatically update the FiveM server resources to the latest versions available.

Monitoring and Logging

  • Real-time Console Output: View live console output from the FiveM server to monitor player activity, server performance, and debug issues in real-time.
  • Server Logs: Access and analyze comprehensive server logs to track player actions, server events, errors, and more.

Security Enhancements

  • Firewall Configuration: Configure firewall rules to restrict access to the FiveM server and enhance security.
  • SSH Hardening: Implement best practices to secure SSH access to the server, including key-based authentication, disabling root login, and more.
  • Automatic Security Updates: Automatically apply security updates to the server operating system and installed packages to mitigate potential vulnerabilities.
  • Fail2Ban Integration: Set up Fail2Ban to prevent brute-force attacks and protect against unauthorized access attempts.

Backup and Recovery

  • Server Backup: Schedule automatic backups of the FiveM server data, including server configuration, resources, player data, and more, to ensure data integrity and disaster recovery.
  • Backup Management: Easily manage and restore server backups from a centralized interface.

Script Management

  • Automatic Updates: Check for and apply updates to the management script itself to ensure access to the latest features, bug fixes, and improvements.
  • Customization Options: Customize script behavior and configurations to suit your specific requirements and preferences.
  • Extensibility: Easily extend the script’s functionality through modular design and integration with third-party tools and services.

Usage

  1. Clone the Repository: Start by cloning this repository to your local machine using the following command:

    git clone https://github.com/Syslogine/fivem-server-manager.git
    
  2. Navigate to the Directory: Move into the cloned directory:

    cd fivem-server-manager
    
  3. Make the Script Executable: Ensure that the script has the necessary permissions to be executed:

    chmod +x fivemanager.sh
    
  4. Run the Script: Execute the script to access the interactive menu:

    ./fivemanager.sh
    
  5. Follow the Menu Options: Use the numbered menu options to perform various server management tasks such as creating a new server, starting or stopping an existing server, monitoring server output, debugging, or updating the script itself.

Contributing

Contributions are welcome! If you encounter any issues, have suggestions for improvements, or want to contribute code enhancements, feel free to open an issue or submit a pull request. Your input helps make this project better for everyone.

License

This project is licensed under the MIT License, which means you are free to use, modify, and distribute the script for both personal and commercial purposes, with appropriate attribution.

Credits

This script is maintained by Yarpii, aiming to simplify the management of FiveM servers for users of all experience levels.

1 Like

all help is welcome… much much love

Have fun as i did… It’s good to be back

1 Like

Update

  • Added languages… the script now supports en, es and nl
  • Added (Backup server) now also backups the database if user has set mysql_connection_string "" info right tin there server.cfg
  • Added more info for Server Performance Monitoring
  • Fixed server stopping

NOTE:
If or when anyone has an idea about what we could improve or add new features everything is welcome.
I created this so it would be easy for new user to start with using Debian/Ubuntu server as this is better in performance wise against the Windows of course and maybe more Linux just outperform the Windows.
This Does not replace the Awesome txAdmin as the is just what u can run allong with… as we give the user the option to start with the txAdmin

I’ve got one suggestion, why not make it open with fxServer like why a seperate terminal and maybe a web interface

I keep getting the error “parse error: Invalid numeric literal at line 7, column 10”, any ideas? Kinda scratching my head what steps to take

jq: parse error: Invalid numeric literal at line 7, column 10
jq: parse error: Invalid numeric literal at line 7, column 10
11. -
jq: parse error: Invalid numeric literal at line 7, column 10
jq: parse error: Invalid numeric literal at line 7, column 10
12. -
jq: parse error: Invalid numeric literal at line 7, column 10
jq: parse error: Invalid numeric literal at line 7, column 10
0. -

========================================
jq: parse error: Invalid numeric literal at line 7, column 10

not wsorking