A better FiveM Server Manager
I don't know. It's usable, at least, I use it for my servers.
Automatic server restarts, probably.
There are two ways to install FSM.
Starting from 0.0.9
and after, in the releases there is an executable file named fsm
.
You need to download this and put it into one of the locations in your $PATH
Also make sure it is marked executable chmod +x fsm
- PHP 7.1
- Linux
You must have composer
installed and its own requirements
Run the following command:
composer global require tnovalis/fivem-servermanager
Once you do that you need to add your composer vendor bin to you $PATH
On Ubuntu, and most Linux distros this is in .config/composer/vendor/bin
If you use Bash for your shell you need to edit .profile
to add it to your $PATH
- PHP 7.1
- Linux
- The few of composers requirements
The first command you should run is this:
fsm fivem:install [<PATH>]
This will install FiveM and save the path for when starting the server.
After that I recommend running this:
fsm server:path [<PATH>]
This will set the server path, making it easier to create servers.
If you want features such as the server automatically restarting after crashing, you need to use fsm schedue:run
This is easy to setup.
All you need to do is put the following into your cron:
* * * * * php /path/to/fsm schedule:run >> /dev/null 2>&1
No support will be given on how to access your cron file.
To update FiveM
fsm fivem:update
To create a server
fsm server:create [<NAME>] [<PATH>]
You don't need to specify the path if the server:path
is set.
To list the servers
fsm server:list --path
This will display a servers status and also check if a server crashed. You can also use --path
to see the server's path in the table.
To send a message to the server
fsm server:say [<NAME>] [<MESSAGE>]
The message must be in quotes unless you omit it in the initial command.
To start a server
fsm server:start [<NAME>]
To stop a server
fsm server:stop [<NAME>]
To backup a server
fsm server:backup [<NAME>]
This will output where it backed the server up to.
To delete a server
fsm server:delete [<NAME>] --no-backup
If you specify --no-backup
the server will not be backed up before removal.
To fix a crashed server
fsm server:fix
This command is scheduled meaning you can run it if you want but it will be ran by fsm schedule:run