FiveM Artifacts Updater is just a python script (using webscrap) to update your FiveM artifacts to a build number or the last release of artifacts, made for Linux for people with almost no idea of using it. Updating your artifacts should take less than 1 minute to be honest, but I know from experience that some people can take up to 30 minutes to do so, so this script does it for you in less than 10 seconds.
To auto-update artifacts for you, you should run a cron job.
There are a few libraries that are required in order to run the updater.
sudo apt install python3-pip
pip3 install bs4
pip3 install lxml
pip3 install tabulate
This script is intended to run with FiveM as a service, there are some people that run FiveM inside a screen (this is not the way to do so). So in order to have this script we need first to have FiveM as a service.
To do that first we need to create the service.
$ sudo nano /etc/systemd/system/fivem.service
We will write the following content in the file.
[Unit]
Description=FiveM Service
After=network.target
[Service]
ExecStart=/path/to/run.sh
User=fivem # your user
Group=fivem # your group <- usually is you username.
[Install]
WantedBy=multi-user.target
Now we have configured our service! Now our FiveM will run as a service!
So let's refresh the systemd to allow our service to show.
$ sudo systemctl daemon-reload
Now you are good to go!
The usage from the script is very straight forward to be honest. Just make sure to edit both of the variables properly and you should be okay, however as much I would like to guarantee you that you will be fine I cannot do so!
If you don't choose a build it will automatically download the latest version for you, if not you can choose whatever version you want, from the first one to the latest one. Just be advised that last versions can break script/server compatibility.
Unattended mode
--build or -b to choose a build, use the number of the build or latest.
--clear-cache or -c to clear the server cache.
Example: -b 5488 -c