Git Product home page Git Product logo

fivem-artifacts-updater's Introduction

FiveM Artifacts Updater for Linux

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.

Installation

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

Pre-requisites

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!

Usage

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

Showcase

096db6390ca7af1ba1df5560a67a9682.mp4

Sin título

485e42ae739608c9e94bb17f7e9dd215

f0bb76f1f685e5614186eac939a3cea4

License

MIT

fivem-artifacts-updater's People

Contributors

jonirulah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.