How to Use RAGE Multiplayer A Walkthrough for Beginners
A first-session tour: the launcher, finding GTA 5 RP servers, direct connect, chat and controls, then your own local test server in ten minutes.
Read MoreRAGE Multiplayer looks simple from the player side: open the launcher, pick a server, play. Under the surface it is a full development platform. This article explains the features that matter most for beginners, especially if you are thinking about RAGE MP scripting or running a server. Every example is short, real and tested on a local server.
If you still need to install the client, follow How to Download and Install RAGE Multiplayer first.
Every RAGE MP server is made of three layers that work together:
| Layer | Folder | Runs where | Language |
|---|---|---|---|
| Server scripts | packages/ | Your server, inside Node.js | JavaScript / TypeScript (or C# in dotnet/) |
| Client scripts | client_packages/ | Each player's game | JavaScript |
| Interfaces | client_packages/ (HTML files) | Embedded Chromium (CEF) in the game | HTML, CSS, JavaScript |
The server owns the truth: money, inventories, who is in which job. The client draws things, reads key presses and shows interfaces. The browser layer makes it easy to build phones, menus and login screens with normal web skills.
Each folder inside packages/ is a package with an index.js entry point. The server loads every package when it starts. Because it is real Node.js, you can use require or npm modules such as mysql2, mongodb or bcrypt.
// packages/core/index.js
const SPAWN = new mp.Vector3(-1037.7, -2737.8, 20.2); // airport
mp.events.add('playerReady', (player) => {
player.spawn(SPAWN);
player.outputChatBox('Welcome to the server.');
});
mp.events.add('playerQuit', (player, exitType, reason) => {
console.log(`${player.name} left (${exitType})`);
});
Common server-side events include playerJoin, playerReady, playerQuit, playerDeath, playerChat and playerEnterVehicle. The official wiki lists all of them with their arguments.
Chat commands are the fastest way to test ideas. mp.events.addCommand gives you the player, the full text and the arguments split by spaces:
mp.events.addCommand('tp', (player, _full, x, y, z) => {
if (!x || !y || !z) return player.outputChatBox('Usage: /tp x y z');
player.position = new mp.Vector3(parseFloat(x), parseFloat(y), parseFloat(z));
});
On a public server you would check an admin flag before allowing a command like this.
The client_packages/index.js file is the entry point for client code. Use it to require your other client files. Client scripts can draw text, read keys, control the camera and call GTA V natives through mp.game.
// client_packages/index.js
require('./hud/index.js');
// client_packages/hud/index.js
mp.keys.bind(0x71, true, () => { // F2 key
mp.gui.chat.push('You pressed F2');
});
mp.events.add('render', () => {
mp.game.graphics.drawText('My Server', [0.5, 0.02], {
font: 4, color: [255, 255, 255, 200], scale: [0.4, 0.4], outline: true,
});
});
Important: players can read everything in client_packages, because the server sends those files to them. Never put database passwords, API keys or anti-cheat secrets there.
Events are how the two sides talk. The client sends with mp.events.callRemote, the server answers with player.call:
// client
mp.events.callRemote('bank:withdraw', 500);
mp.events.add('bank:result', (ok, balance) => {
mp.gui.chat.push(ok ? `New balance: $${balance}` : 'Not enough money');
});
// server
mp.events.add('bank:withdraw', (player, amount) => {
amount = Number(amount);
if (!Number.isInteger(amount) || amount <= 0 || amount > 10000) return;
const balance = player.getVariable('bank') || 0;
if (balance < amount) return player.call('bank:result', [false, balance]);
player.setVariable('bank', balance - amount);
player.call('bank:result', [true, balance - amount]);
});
Notice the validation on the server. Any player can send any value through a remote event, so treat every argument as untrusted input. This single habit prevents most money and item exploits on RAGE MP servers.
RAGE Multiplayer ships an embedded Chromium browser. You load an HTML page from client_packages and it appears on top of the game:
// client
const ui = mp.browsers.new('package://ui/login.html');
mp.gui.cursor.show(true, true);
mp.events.add('ui:login', (user, pass) => {
mp.events.callRemote('auth:login', user, pass);
});
// inside login.html (browser side)
document.querySelector('form').addEventListener('submit', (e) => {
e.preventDefault();
mp.trigger('ui:login', user.value, pass.value);
});
Because it is a real browser, you can use React, Vue, Svelte or plain HTML. Keep bundles small: everything in client_packages is downloaded by every player.
Players, vehicles, objects, peds, markers, blips, labels and colshapes are all entities created on the server:
const car = mp.vehicles.new(mp.joaat('sultan'), new mp.Vector3(-1030, -2730, 20), {
numberPlate: 'RAGE', color: [[255, 107, 53], [20, 20, 20]],
});
const zone = mp.colshapes.newSphere(-1030, -2730, 20, 5);
mp.events.add('playerEnterColshape', (player, shape) => {
if (shape === zone) player.outputChatBox('You entered the dealership.');
});
Entities are streamed to each player only when they are close enough. The stream-distance setting in conf.json controls that radius. Lower values save bandwidth on busy servers.
entity.setVariable(key, value) stores data that the server owns and that clients can read with entity.getVariable(key). It is ideal for things everyone should see, such as a job name over a player's head. Use mp.events.addDataHandler on the client to react to changes.
JavaScript is the most common choice, but RAGE MP also supports C# on the server. Set "csharp": "enabled" in conf.json and place your compiled resources in the dotnet folder, following the wiki. A C++ SDK exists for plugin authors who need native performance.
Proximity voice chat has been part of RAGE MP since version 0.3.6, so you do not need a separate voice server. Turn it on in conf.json with "voice-chat": true, then control who hears whom from your scripts. Newer updates added optional noise suppression and bitrate settings for server developers.
When you are ready to go public, set "announce": true and give your server a clear name and gamemode. Open UDP port 22005 and TCP port 22006 (resource downloads) on your host. The free starter kit on our homepage ships a sensible conf.json you can adapt.
A typical beginner project combines all of this: a login page in CEF, a remote event that checks the password on the server, a database row for the character, and a few client scripts for the HUD. Start small with commands and events, then add interfaces once the logic works.
For a first-session tour, read How to Use RAGE Multiplayer: A Beginner's Walkthrough. For hardware and hosting sizes, see RAGE Multiplayer System Requirements and Compatibility.
Get RAGE Multiplayer from our safe download page.
Download RAGE MultiplayerA first-session tour: the launcher, finding GTA 5 RP servers, direct connect, chat and controls, then your own local test server in ten minutes.
Read MoreThe complete walkthrough: check your GTA V copy, get the official RAGE MP installer, set the game path, finish the first update and join a server.
Read MorePlayer PC specs, small and large server sizing, supported Windows and Linux versions, GTA V Legacy vs Enhanced and the ports you need to open.
Read More