Skip to content

OpenMP

A multiplayer mod for Grand Theft Auto: San Andreas that is fully backwards compatible with San Andreas Multiplayer.

Report an issue
updated
variables
2
images
1
author
vedrancappone@gmail.com
sha256
45a7d837f7ce

Readme

OpenMp

The OpenMp GTA San Andreas dedicated server

Server Ports

Port default
Game 25570

Startup command

./omp-server

Docker image

  • Samp ghcr.io/ptero-eggs/games:samp

2 contributors

Variables

2 settings

  • RCON Password

    The password for RCON

    env
    RCON_PASSWORD
    default
    none
    rules
    required|string|max:32
    • viewable
    • editable
  • Version

    The version you want to install

    env
    VERSION
    default
    latest
    rules
    required|string|max:20
    • viewable
    • editable
Installation script 42 lines container ghcr.io/ptero-eggs/installers:debian entrypoint bash show
#!/bin/bash

apt -y install curl git jq tar

## get release info and download links
LATEST_JSON=$(curl --silent "https://api.github.com/repos/openmultiplayer/open.mp/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/openmultiplayer/open.mp/releases")
MATCH=open.mp-linux-x86-dynssl

if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})
else
    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
    if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})
    else
        echo -e "defaulting to latest release"
        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -linux-x86 | head -1)
    fi
fi

echo "running: curl -sSL -o openmp.tar.gz ${DOWNLOAD_URL}"
curl -sSL -o openmp.tar.gz ${DOWNLOAD_URL}

mkdir -p /mnt/server
tar -xzvf openmp.tar.gz --strip-components=1 -C /mnt/server/

cd /mnt/server || exit

echo "creating default config"

if [ -e config.json ]; then
    echo "server config file exists"
else
    echo "Downloading default OpenMp config"
    curl https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/gta/openmp/config.json >> config.json
fi


echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"