Server Manual

Revision as of 04:55, 23 August 2022 by Vortrex (talk | contribs)

General Information

GTA Connected is designed as an empty sandbox, so minimal content is provided by default. At the very minimum, you'll need to have a resource that fades in the camera. This resource is already provided (called "freeroam") within the default server package on the main downloads page.

Resources

GTA Connected scripts and server-provided content are called resources and are located in the resources folder of your server's directory. Information on creating and using resources can be found on the resource info page. If you need scripting functions, the main page provides information on scripting functions and ID references. Example resources can be found here

Server Configuration

The server.xml file stores the basic server configuration for your server. This file tells your server what resources to load, what port to run on, etc. There are lots of configurable options.

Port Forwarding

Servers hosted from PC's at home will most likely need to port forward. This is usually done within the router's configuration. The instructions for port forwarding vary per router so they won't be listed here, but you can find instructions here ... You'll need to open UDP and TCP ports for the server and HTTP connections. The default ports are 22000 for both, but these can be different depending on server configuration.

Linux

Instructions for setting this up can be found on the linux server page.

Windows

The windows server comes in both 32 and 64 bit architectures, so choose the one that corresponds to the host. More information on setting this up can be found on the windows server page.

Built-in HTTP Server

The GTA Connected server provides a built-in HTTP server which used to distribute client-side resource files to clients when they connect to the server (like audio, images, etc ... not scripts though). Disabling it is typically for server owners or hosts that want to use another HTTP service like apache2 or nginx to distribute the files.