Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Installation

tbeck edited this page Sep 17, 2023 · 2 revisions

Learn how to set up your alt:V server to run a resource written in Golang.


Download alt:V server

Download server files from https://altv.mp/#/downloads.
Use the Dropdown to pick the branch you want to use.
Tick the following elements:

  • Data Files
  • JS Module
  • JS Bytecode Module
  • C# Module
  • Sample Config File
  • Example Resource Pack

Press Download and unzip the obtained altv-server.zip into a folder.

Set up go-module

  1. Next, download the latest libgo-module.so (for linux) or go-module.dll(for windows) from Github releases.
    Make sure the go-module version you download is compatible with the alt:V server version you downloaded earlier.
    It is possible that you have to build the module from source if there is no compatible version for the alt:V server you use.

  2. Move the libgo-module.so / go-module.dll into the modules folder of your alt:V server

  3. Add the entry go-module to the modules list in your server.toml:
    Before

    name = 'alt:V Server'
    port = 7788
    players = 128
    # password = 'ultra-password'
    announce = false
    # token = 'YOUR_TOKEN'
    gamemode = 'Freeroam'
    website = 'example.com'
    language = 'en'
    description = 'alt:V Sample Server'
    modules = [
        'js-module'
    ]
    resources = []

    After

    name = 'alt:V Server'
    port = 7788
    players = 128
    # password = 'ultra-password'
    announce = false
    # token = 'YOUR_TOKEN'
    gamemode = 'Freeroam'
    website = 'example.com'
    language = 'en'
    description = 'alt:V Sample Server'
    modules = [
        'js-module',
        'go-module'
    ]
    resources = []

Now your server directory should look something like this:

server/
โ”œโ”€โ”€ cache/
โ”œโ”€โ”€ data/
โ”œโ”€โ”€ modules/
    โ”œโ”€โ”€ go-module.dll # on Windows
    โ”œโ”€โ”€ libgo-module.so # on Linux
โ”œโ”€โ”€ resources/
    โ”œโ”€โ”€ chat/
    โ”œโ”€โ”€ freeroam/
    โ”œโ”€โ”€ voice-chat/
    โ”œโ”€โ”€ example/
โ”œโ”€โ”€ altv-server.exe
โ”œโ”€โ”€ server.toml

Next steps

You can now run your alt:V server as usual.
Continue your go journey by creating a new project.

Clone this wiki locally