This guide covers everything you need to get your alt:V server running on Legion Hosting, from first-time startup and server.toml configuration to gamemode resources, CDN setup, voice chat, and how players connect through the alt:V launcher. For resource development, database setup, and admin management, see alt:V Admin and Resource Setup.
What is alt:V?
alt:V is a free, open-source multiplayer modification for Grand Theft Auto V. It allows players to connect to custom servers running unique gamemodes such as roleplay (RP), deathmatch, racing, freeroam, and more. The server runs custom resources written in JavaScript, TypeScript, or C#, giving server owners full control over gameplay logic. Players connect through the alt:V launcher, which modifies GTA V for multiplayer connectivity.
First Start
When you first receive your alt:V server, follow these steps to get it online:
- Log in to GPanel and select your alt:V server.
- Navigate to the Startup tab and configure your server name, max players, and other startup variables.
- Go to the Console tab and click Start.
- The server will download the alt:V server files on first boot. This may take a few minutes.
- Once the console displays that the server is listening and ready for connections, your server is online.
- By default, the server starts with no gamemode resources. You will need to add resources to create gameplay. See alt:V Admin and Resource Setup for details.
GPanel Startup Variables
alt:V exposes several configuration options as startup variables in GPanel. Navigate to the Startup tab to modify these. Changes require a server restart.
| Variable | Default | Description |
|---|---|---|
PASSWORD |
ChangeMe |
Password to join the server. Minimum 6 characters. |
SERVER_DESC |
A Pterodactyl Hosted Server |
Server description displayed in the alt:V server browser. |
BUILD |
release |
The alt:V server branch: release (stable), rc (release candidate), or dev (development). |
Server Configuration (server.toml)
The primary configuration file for alt:V servers is server.toml, located in the server root directory. You can edit this file through the Files tab in GPanel or via SFTP.
Example server.toml
name = "My alt:V Server"
host = "0.0.0.0"
port = 7788
players = 128
password = ""
announce = true
token = ""
gamemode = "Freeroam"
website = ""
language = "en"
description = "A custom GTA V multiplayer server"
modules = ["js-module"]
resources = ["myresource"]
tags = ["freeroam", "fun"]
Key settings: name (browser display name), host (keep 0.0.0.0), port (must match GPanel), players (max count), password (empty for public), announce (true to appear in browser), token (announce token from alt:V website, required for browser listing), gamemode (browser label like "Roleplay"), modules (script modules: js-module or csharp-module), resources (array of resource folders to load), and tags (browser filter tags).
Announce Token
For your server to appear in the alt:V server browser, you need an announce token from the alt:V master server:
- Visit the alt:V website and log in or create an account.
- Navigate to the server management section and generate a new server token.
- Copy the token and paste it into the
tokenfield in yourserver.toml. - Ensure
announce = truein your configuration. - Restart the server. It should now appear in the public browser.
server.toml.
Gamemode Resources
alt:V servers are powered by resources — scripts that define all gameplay logic. Without resources, a server has no custom functionality. Resources are placed in the resources/ directory.
Resource Structure
resources/
myresource/
resource.toml <-- Resource configuration
server/
index.js <-- Server-side script
client/
index.js <-- Client-side script (runs on the player's GTA V)
Loading Resources
Add resource names to the resources array in server.toml to load them on startup:
resources = ["chat", "freeroam", "spawn"]
Each resource must have a resource.toml file in its directory that defines its type, dependencies, and script entry points. For details on creating and managing resources, see alt:V Admin and Resource Setup.
CDN Setup
alt:V uses a CDN mechanism to serve client-side files (models, textures, scripts) to connecting players. The built-in CDN serves files directly from the server with no extra configuration needed — this is the default and works well for most servers. For large-scale servers with many custom assets, you can optionally configure an external CDN by uploading client files to a web server and setting the CDN URL in your resource configuration, reducing game server bandwidth usage.
Voice Chat
alt:V includes a built-in voice chat system that allows positional (3D) voice communication between players. Voice chat is enabled and configured in server.toml.
Voice Configuration
[voice]
bitrate = 64000
externalSecret = ""
externalHost = ""
externalPort = 0
The bitrate controls voice quality (64000 is standard). The external* fields configure an external voice server — leave them empty/zero to use the built-in voice server, which is recommended for most setups. The external voice server option is only needed for advanced configurations where voice processing is offloaded to a separate machine.
How Players Connect
Players connect to alt:V servers through the alt:V launcher, not through GTA V directly.
Via the Server Browser
- Download and install the alt:V launcher from altvmp.com.
- Launch the alt:V launcher. It will detect and verify the GTA V installation.
- From the launcher, browse the Server Browser.
- Search for your server by name or use filters (gamemode, tags, player count).
- Click on your server and select Connect.
- If the server has a password, the player will be prompted to enter it.
- GTA V will launch with the alt:V multiplayer mod and connect to your server.
Via Direct Connect
- In the alt:V launcher, select Direct Connect.
- Enter your server's IP address and port in the format
IP:PORT(e.g.,192.168.1.1:7788). - Click Connect.
To find your server's IP address and port, see How to Find Your Server IP and Port.
announce = true in your server.toml and that you have a valid announce token. The server may take a minute to register after startup. Check the console for master server connection errors. Note that your port is randomly assigned unless you have a private IP -- check GPanel for the correct value.
Max Players and Performance
alt:V servers can support high player counts, but performance depends heavily on your resources and server plan:
- 32–128 players: A common range for most servers. Simple gamemodes run smoothly at higher counts.
- 128–512+ players: Possible for optimized servers with efficient resources. Requires more CPU and RAM.
- Resource efficiency: Poorly optimized scripts are the primary cause of performance issues. Server-side scripts that run heavy operations every tick or maintain large data structures in memory can bottleneck the server.
- Database queries: Gamemodes using databases (MySQL, MongoDB) should use async queries to avoid blocking the main thread.
Related Articles
- alt:V Admin and Resource Setup — Resource development, database setup, admin tools, and troubleshooting
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
- Server Startup Guide — General guide for starting any game server on Legion Hosting
Need More Help?
If you are experiencing issues not covered in this guide, our support team is available to assist. Open a ticket at legionhosting.net/submitticket.php with your server details and a description of the problem.