Skip to content

alt:V

alt:V Multiplayer a third-party multiplayer modification for Grand Theft Auto: V

egg-alt-v.json

updated

Ports

Add an allocation on the node for each port.

  • Game 7788

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Install script
74 lines

Image

  • ALT:V ghcr.io/ptero-eggs/games:altv

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

4 variables

Startup command

./altv-server
  • Needed to load modules correctly. Best left at default.

    LD_LIBRARY_PATHUsers cannot see

    required|string|max:20

  • The supported versions are release, rc, dev (default: release). If you don't know what you are doing leave it on release

    BUILDUsers can edit

    required|string|in:release,rc,dev

  • The password to join the server

    PASSWORDUsers can edit

    nullable|string|min:6

  • Description for the server.

    SERVER_DESCUsers can edit

    required|string

Wings

Stop command
quit
Running when the console shows
Server started

Files Wings edits

Wings sets these values in these files before each start.

server.toml file

host:
host: 0.0.0.0
port:
port: {{server.build.default.port}}
password:
password: {{server.build.env.PASSWORD}}
description:
description: {{server.build.env.SERVER_DESC}}

Readme

alt:v

From the alt:V Site

alt:V Multiplayer a third-party multiplayer modification for Grand Theft Auto: V.

Server Ports

Ports required to run the server in a table format.

Port default
Game 7788

Changes

  1. Add standalone games

    · Daniel Barton · 74c706a

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 74 lines bash in ghcr.io/ptero-eggs/installers:debian Show
#!/bin/bash
#

apt update
apt install -y wget jq curl 

cd /mnt/server
NEWVERSION=$(curl -sSL https://cdn.alt-mp.com/server/${BUILD}/x64_linux/update.json | jq -r .version)


if [ -f "/mnt/server/altv-server" ]; then
    CURRENTVERSION=$(cat update.json | jq -r .version)
    if [[ "${CURRENTVERSION}" == "${NEWVERSION}" ]]; then
        echo "No update found"
        exit 0
    fi
    echo "Backing up version ${CURRENTVERSION}"
    mkdir -p /mnt/server/backup/${CURRENTVERSION}/data
    mv altv-server /mnt/server/backup/${CURRENTVERSION}/
    cd /mnt/server/data
    mv clothes.bin /mnt/server/backup/${CURRENTVERSION}/data
    mv vehmodels.bin /mnt/server/backup/${CURRENTVERSION}/data
    mv vehmods.bin /mnt/server/backup/${CURRENTVERSION}/data
    mv pedmodels.bin /mnt/server/backup/${CURRENTVERSION}/data
    mv weaponmodels.bin /mnt/server/backup/${CURRENTVERSION}/data
    mv rpfdata.bin /mnt/server/backup/${CURRENTVERSION}/data
    rm /mnt/server/update.json
fi


cd /mnt/server


echo "Installing version: ${NEWVERSION}"
wget -q https://cdn.alt-mp.com/server/${BUILD}/x64_linux/altv-server
wget -q https://cdn.alt-mp.com/server/${BUILD}/x64_linux/update.json
chmod +x ./altv-server


mkdir -p /mnt/server/data
cd /mnt/server/data

wget -q https://cdn.alt-mp.com/data/${BUILD}/data/vehmodels.bin
wget -q https://cdn.alt-mp.com/data/${BUILD}/data/vehmods.bin
wget -q https://cdn.alt-mp.com/data/${BUILD}/data/clothes.bin
wget -q https://cdn.alt-mp.com/data/${BUILD}/data/pedmodels.bin
wget -q https://cdn.alt-mp.com/data/${BUILD}/data/weaponmodels.bin
wget -q https://cdn.alt-mp.com/data/${BUILD}/data/rpfdata.bin




cd /mnt/server
if [ ! -f "/mnt/server/server.toml" ]; then
cat << EOF >> server.toml
name = 'alt:V Server'
host = '0.0.0.0'
port = ${SERVER_PORT}
players = 128
password = '${PASSWORD}'
announce = false
token = 'YOUR_TOKEN'
gamemode = 'Freeroam'
website = 'example.com'
language = 'en'
description = '${SERVER_DESC}'
modules = []
resources = []
EOF
fi

mkdir -p resources/

echo -e "install complete"