-
Notifications
You must be signed in to change notification settings - Fork 5
Installation
Learn how to set up your alt:V server to run a resource written in Golang.
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.
-
Next, download the latest
libgo-module.so(for linux) orgo-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. -
Move the
libgo-module.so/go-module.dllinto themodulesfolder of your alt:V server -
Add the entry
go-moduleto themoduleslist in yourserver.toml:
Beforename = '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.tomlYou can now run your alt:V server as usual.
Continue your go journey by creating a new project.
You encountered a problem ๐ฅ? Check out the Troubleshooting Guide!
If you can't find a solution there file a new issue in this repository or contact me on Discord.