Server Configuration

From GTA Connected
Jump to: navigation, search

Summary[edit]

The server configuration file is named server.xml, and is located in the same folder as the file named Server.exe on Windows or Server on Linux.
You can use a custom server configuration file with the -config option. Example: Server.exe -config my-config.xml. See the server command arguments page for more info on accepted command arguments. The file uses the XML syntax, with a root node named server.
Official XML Specification

Settings[edit]

Server Property Name Default Value Description
compresspackets false The status of whether packets are compressed. This is only available in GTAC versions 1.0.66 and newer.
duplicatenames false The status of whether to allow players with duplicate names.
game gta:iii (required) The identifier of the game that the server should run for. See game identifiers for more information.
gamemode n/a (required) The name of the game mode, which appears in the server browser.
gunshops false The enabled status for gun shops.
httpport 22000 The port for the server to transfer HTTP data on, between 0 and 65,535.
httpserver true Whether or not to run the HTTP server. If you don't run it, you'll need to host the HTTP server elsewhere, with the port found in httpport.
logpath "" (empty string) The path to store the server logs. Leave blank to not use server logs.
logtimestamp "" (empty string) The timestamp format to use in the log files. Based on the strftime format from C++. Some examples:

[%H:%M:%S] This displays only the time
[%d/%m/%Y %H:%M:%S] This would display the date in dd/mm/yyyy format followed by the time in hour:minute:second format.

maxplayers 32 The maximum amount of players that can connect to the server, between 0 and 256.
minclientversion 1.0.0 The minimum version that clients can connect with.
modules (empty node) The modules to load. Use the <module> tag inside the <modules> tag, for each module to load, including the src attribute for the directory path.
packetcompressionlevel default The compression level for compressed packets, between 0 and 9, or the word default. Default is 6 (ZLib's Z_DEFAULT_COMPRESSION)
password "" (empty string) The password to connect to the server.
pickupstreamindistance 50.0 The distance that a pickup is sent to the client, recommended to be about 50.0.
pickupstreamoutdistance 100.0 The distance that a pickup is removed from the client, recommended to be about 100.0.
planes false The enabled status for planes in the sky.
port 22000 The port for the server to listen on, between 0 and 65,535. Players only need to know the port if using the /connect command in-game, not when using the server browser.
processinterval 50 The interval, in milliseconds, of each process-once occurrence, between 0 and 65,535.
rcon false The status of whether the server will host the remote console service, use true or false.
rconpassword "" (empty string) The password to connect to the remote console service.
resources (empty node) The resources to load. Use the <resource> tag inside the <resources> tag, for each resource to load, including the src attribute for the directory path.
serverbrowser false The status of whether to show the server in the server browser, use true or false.
servername n/a (required) The name of the server, which appears in the server browser.
streamindistance 100.0 The distance that an entity is sent to the client, recommended to be about 100.0.
streamoutdistance 200.0 The distance that an entity is removed from the client, recommended to be about 200.0.
stuntjumps false The enabled status for stunt jumps.
syncinterval 30 The interval, in milliseconds, of each sync occurrence for the regularly sync'd data, between 0 and 65,535.
syncmethod interval The sync type for regularly sync'd data. Use none, interval or replay.
toiletcamera false The enabled status for toilet camera.
trains false The enabled status for trains. GTA III only.
uniquestuntjumps false The enabled status for unique stunt jumps.