Servers/GettingStarted: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
m (PerikiyoXD moved page GettingStarted to Servers/GettingStarted: Namespacing)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Getting Started}}
{{DISPLAYTITLE:Getting Started}}
{{RedInformationBox|1=If you're only wanting to play, this guide is not for you. This guide is for '''creating a server'''}}
{{BlueInformationBox|1=This guide explains how to '''create and run a server'''. If you only want to join and play on an existing server, this page is not required.}}
== General Stages ==


- Download the server files on the [https://gtaconnected.com/downloads Downloads] page.<br>
= Getting Started =
- Unzip/extract the server files to an empty folder.<br>
- Change settings in server.xml ([[ServerConfiguration|available settings]])<br>
- Run the server executable. For Windows, this will be ''Server.exe''. For Linux, there are several options to do this, see the [[LinuxServer|linux server]] manual page.<br>


== GTA IV (Rockstar Modes) ==
== Overview ==
First, remove the freeroam resource that comes with the server, by deleting the freeroam folder in resources. Then remove the <code><resource src="freeroam" /></code> line in [[ServerConfiguration|server config]]. The server should launch normally now, and connecting will place you into a generic rendezvous lobby, which uses party mode. You and other players who connect can use the phone in-game to start and join sessions.


== GTA III, VC, SA, and IV (Custom Modes/Scripted) ==
Setting up a server involves four main steps:
There are some example scripts [https://github.com/VortrexFTW/gtac_essentials here]. At the very minimum, you'll need to fade in the camera using [[gta.fadeCamera|gta.fadeCamera]] in a logical event such as in the [[OnPlayerJoined|onPlayerJoined]] event. The default resource provided with the server, called "freeroam", includes spawning the player and fading the camera, but is designed for GTA 3 only.


== Manual ==
# Download the server package from the [https://gtaconnected.com/downloads Downloads] page.
Check the [[ServerManual|Server Manual]] page.
# Extract the files to a new, empty folder.
# Configure your server settings in <code>server.xml</code> (see [[ServerConfiguration|Server Configuration]]).
# Start the server executable.
 
Executable names:
* '''Windows:''' <code>Server.exe</code>
* '''Linux:''' See [[LinuxServer|Linux Server]] for available launch methods and instructions.
 
Once started successfully, the server will begin listening for incoming connections.
 
== Server Configuration ==
 
All core settings are stored in <code>server.xml</code>. This includes:
 
* Server name
* Port settings
* Resource loading
* Player limits
* Networking options
 
Refer to [[ServerConfiguration|Server Configuration]] for a full list of available settings and explanations.
 
After modifying the configuration, restart the server for changes to take effect.
 
== Game Mode Setup ==
 
=== GTA IV (Rockstar Modes) ===
 
To use Rockstar’s built-in game modes (Party Mode sessions):
 
# Navigate to the <code>resources</code> folder.
# Delete the <code>freeroam</code> folder.
# Open <code>server.xml</code>.
# Remove the line:
<pre><resource src="freeroam" /></pre>
 
Start the server normally.
 
Players who connect will enter a generic rendezvous lobby using Party Mode. From there:
 
* Players can use the in-game phone.
* Sessions can be created or joined directly.
 
=== GTA III, Vice City, San Andreas, and IV (Custom / Scripted Modes) ===
 
For scripted servers:
 
* Example scripts are available here:
  [https://github.com/VortrexFTW/v-essentials v-essentials examples]
 
If creating your own scripts, you must at minimum:
 
* Spawn the player.
* Fade in the camera using [[gta.fadeCamera|gta.fadeCamera]].
* Trigger this logic in an appropriate event, such as [[OnPlayerJoined|onPlayerJoined]].
 
The default <code>freeroam</code> resource:
 
* Handles spawning and camera fade.
* Is designed for GTA III.
* May require modification for other games.
 
We also provide a [[MinimalResourceSkeleton|Minimal Resource Skeleton]] that you can use to start on your own.


== Resources ==
== Resources ==
Check the [[Resources|resources]] page for information on how to use resources.
 
Resources control gameplay logic, scripts, and custom functionality.
 
See [[Resources|Resources]] for:
 
* Resource structure
* Loading and unloading
* Script organization
* Best practices
 
== Modules ==
 
Modules extend server functionality with native integrations such as:
 
* MySQL
* SQLite
* INI file handling
* Additional system-level features
 
See [[Modules|Modules]] for usage instructions.
 
Additional modules are available on the forum:
[https://forum.gtaconnected.com/index.php?board=24.0 Modules Board]
 
Developers with C or C++ experience can create custom modules using the:
[https://gtaconnected.com/downloads/ModuleSDK.7z Module SDK]
 
== Server Manual ==
 
For in-depth documentation covering commands, configuration, scripting, and advanced topics, see the [[ServerManual|Server Manual]].
 
== Next Steps ==
 
After your server is running:
 
* Verify connectivity (see port forwarding documentation if hosting from home).
* Test resource loading.
* Confirm players can join successfully.
* Begin developing or installing additional resources and modules.

Latest revision as of 13:51, 23 February 2026

This guide explains how to create and run a server. If you only want to join and play on an existing server, this page is not required.

Getting Started

Overview

Setting up a server involves four main steps:

  1. Download the server package from the Downloads page.
  2. Extract the files to a new, empty folder.
  3. Configure your server settings in server.xml (see Server Configuration).
  4. Start the server executable.

Executable names:

  • Windows: Server.exe
  • Linux: See Linux Server for available launch methods and instructions.

Once started successfully, the server will begin listening for incoming connections.

Server Configuration

All core settings are stored in server.xml. This includes:

  • Server name
  • Port settings
  • Resource loading
  • Player limits
  • Networking options

Refer to Server Configuration for a full list of available settings and explanations.

After modifying the configuration, restart the server for changes to take effect.

Game Mode Setup

GTA IV (Rockstar Modes)

To use Rockstar’s built-in game modes (Party Mode sessions):

  1. Navigate to the resources folder.
  2. Delete the freeroam folder.
  3. Open server.xml.
  4. Remove the line:
<resource src="freeroam" />

Start the server normally.

Players who connect will enter a generic rendezvous lobby using Party Mode. From there:

  • Players can use the in-game phone.
  • Sessions can be created or joined directly.

GTA III, Vice City, San Andreas, and IV (Custom / Scripted Modes)

For scripted servers:

  • Example scripts are available here:
 v-essentials examples

If creating your own scripts, you must at minimum:

The default freeroam resource:

  • Handles spawning and camera fade.
  • Is designed for GTA III.
  • May require modification for other games.

We also provide a Minimal Resource Skeleton that you can use to start on your own.

Resources

Resources control gameplay logic, scripts, and custom functionality.

See Resources for:

  • Resource structure
  • Loading and unloading
  • Script organization
  • Best practices

Modules

Modules extend server functionality with native integrations such as:

  • MySQL
  • SQLite
  • INI file handling
  • Additional system-level features

See Modules for usage instructions.

Additional modules are available on the forum: Modules Board

Developers with C or C++ experience can create custom modules using the: Module SDK

Server Manual

For in-depth documentation covering commands, configuration, scripting, and advanced topics, see the Server Manual.

Next Steps

After your server is running:

  • Verify connectivity (see port forwarding documentation if hosting from home).
  • Test resource loading.
  • Confirm players can join successfully.
  • Begin developing or installing additional resources and modules.