settings.xml

From GTA Network Wiki
Jump to: navigation, search

settings.xml

  • settings.xml - is a configuration file which allows you to change the settings of your server, like hostname, password or resources to load, etc..

Settings

The following table will explain the use of the following settings:

Setting Default value Description
servername Simple GTA Network Server Server name that will be displayed to the master server.
password Your server password. Leave blank for no password.
serverport 4499 The port that the server will use. Server uses both UDP and TCP protocols.
maxplayers 16 Maximum number of players your server will hold.
minclientversion 0.0.0.0 Clients with an older client version will not be able to connect.
minclientversion_auto_update true Auto update Client's files before connecting to the server
masterserver http://master.gtanet.work Master server address. There is absolutely no need to touch this if we're still alive.
announce true Announce to the master server so people can see you in their server browser.
announce_lan true Announce to your LAN network.
upnp false Use Universal Plug & Play protocol to automatically port forward.
log true Used to log all the console output to a file.
loglevel 0 Log level for debugging (between 0 and 3, where 1 is error, 2 is debug, 3 is verbose)
vehicle_lagcomp true Vehicle lag compensation switch. Disabling may result in smoother sync, but delayed data.
onfoot_lagcomp true On-foot lag compensation switch. Disabling may result in smoother sync, but delayed data.
refresh_rate 120 Server refresh rate
resource Resources to automatically start after the server starts.
acl_enabled true Sets whether the Access Control List is enabled.
whitelist Mod whitelist based on hash
mod Defines an allowed mod.
hash MD5 hash of the mod.
httpserver false Enable an HTTP server for file transfer.
local_address 0.0.0.0 The local IP address to bind the server to.
trust_client_entity_properties false To either allow client-side entity properties to be accepted by the server
fqdn The ability to use FQDNs instead of IP addresses, if the IP matches the resolved domain name, then the IP gets replaced by the FQDN.

Sample file

<?xml version="1.0"?>
<config xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <servername>Simple GTANetwork Server</servername>
  <serverport>4499</serverport>
  <maxplayers>16</maxplayers>
  <minclientversion>0.1.339.623</minclientversion>
  <minclientversion_auto_update>true</minclientversion_auto_update>
  <announce>true</announce>
  <announce_lan>true</announce_lan>
  <password></password>
  <masterserver>http://master.gtanet.work/</masterserver>
  <acl_enabled>true</acl_enabled>
  <log>true</log>
  <refresh_rate>120</refresh_rate>
  <vehicle_lagcomp>true</vehicle_lagcomp>
  <onfoot_lagcomp>true</onfoot_lagcomp>
  <loglevel>1</loglevel>
  <trust_client_entity_properties>false</trust_client_entity_properties>
  <local_address>0.0.0.0</local_address>

  <resource src="freeroam" />
  <resource src="admin" />  
  <resource src="scoreboard" />
  <resource src="votemanager" />
  <resource src="welcomemessages" />

</config>