We all know how time-consuming it can be to set up new workspaces for FiveM servers, so I decided to build something that makes it easier—my first Python script!
This script automates everything needed to get a new FiveM server up and running quickly. Here’s what it handles:
Cross-platform compatibility: Works on both Linux and Windows, with platform-specific adjustments (like using unzip on Linux or 7-Zip on Windows).
Automatic server setup: Downloads and extracts the latest FiveM server artifacts and sets up the cfx-server-data folder.
Effortless server.cfg generation: Just input details like server name, port, license key, and database info, and the script will create a fully-configured server.cfg file for you.
Database integration: Option to configure MySQL/MariaDB settings automatically for seamless database connection.
Resource folder setup: Prepares the resources folder so you can start adding custom scripts or mods immediately.
No more manually configuring files or worrying about missing steps—this script takes care of it all. It’s my first script, so I’d love to hear your feedback and suggestions to make it even better!
Give it a try and let me know what you think.
Do not hesitate to improve the script through pull requests or motivate me with some stars.
You’re right, I added an option to complete the setup through TxAdmin, but it still helps to :
Download automatically the artifact, delete archive and unzip
Open your network ports
Helps or create a database for your server
You can still complete the setup with Tx for even faster setup, but we use this on our project and everyone is happy with it.
PS : This script is very useful when used on a existing FiveM Server Github project because you can avoid pushing the artifacts and configuration files from FiveM while keeping your own server architecture.
You can still complete the setup with Tx for even faster setup,
so what is the point?
the only benifit this provides over what already comes with the server, is opening the ports, which is super simple anyway
PS : This script is very useful when used on a existing FiveM Server Github project because you can avoid pushing the artifacts and configuration files from FiveM while keeping your own server architecture.
Indeed, your just blinding installing the latest, which is a very bad idea, considering Cfx break things, very often and they do not remove builds that break, doing this on linux espically , is not a good idea.
Also:
his might be “useless” if you setup a server every year.
I install a server atleast once per week, its literally 3 clicks to download, and 6 clicks to install, it already is as simple and easy as it gets. Hell once you know what your doing, you can install a cfx default server within 2 minutes, so I dont really see the point in this at all
What would you recommend instead of dowloading the very latest ?
As the recommended one is very old ?
Also, you might be experimented with FiveM, this script is also intended to try to help newcomers to start their FiveM Development Server.
Finally like I said, the main objective was to learn some python. I wanted to share this script and if it can help at least one person, I would be happy