Giter Club home page Giter Club logo

altv-autoinstall's Introduction

altv-install

alt:V Multiplayer, A free alternative multiplayer client for GTA:V. Our client provides perfect synchronization on custom dedicated servers. Play with your friends and make your own gamemodes with JS, C# and much more.

How to use this

wget https://raw.githubusercontent.com/Marlbogaro/altv-install/main/altv.sh
chmod +x altv.sh
./altv.sh

Starting a server

Now you have all server files that you need. Let's try to start server with start.sh

./altv-server

Running alt:V server as a systemd.service

It is possible to run the alt:V server as a systemd.service. This gives you the following advantages:

  • You can make the server automatically restart when it crashes
  • You can easily start/stop it with simple commands, without navigating to the server directory
  • You can add the alt:V server to the autostart
  • Adding the service

Create the file /lib/systemd/system/altv.service with any editor of your choice. In this example we're using nano.

sudo nano /lib/systemd/system/altv.service

Paste the following snippet inside this file and modify it to your needs. Make sure to change the paths and user/group, otherwise it won't work.

[Unit]
Description=alt:V Server
After=network.target
[Service]
WorkingDirectory=/path/to/your/server/
User=altv
Group=altv
Type=simple
ExecStart=/path/to/your/server/altv-server
ExecStop=kill -15 $MAINPID
PIDFile=/path/to/your/server/altv.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Now save the file and enable the service with

systemctl enable altv.service

Congratz! The service has been successfully added. alt:V will now automatically boot with your server and restarts, if it crashes. You also now have access to the following commands:

service altv start # start the server
service altv stop # stop the server
service altv status # get the current status of your server with console output
service altv restart # restart the server

WIKI ALT:V

https://wiki.altv.mp/wiki/Main_Page

altv-autoinstall's People

Contributors

marlbogaro 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.