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.
serverport 4499 The port that the server will use. Server uses both UDP and TCP protocols.
maxplayers 50 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
announce true Announce to the master server so people can see you in their server browser.
password [empty or null] Your server password. Leave blank for no password.
masterserver http://master.gtanet.work Master server address. There is absolutely no need to touch this if we're still alive.
acl_enabled true Sets whether the Access Control List is enabled.
loglevel 0 Log level for debugging (between 0 and 3, where 1 is error, 2 is debug, 3 is verbose)
log true Used to log all the console output to a file.
global_streaming_range 175 The global streaming range. Aka, how far things will "load" or "sync" globally.
player_streaming_range 500 How far away players will be streamed or synced.
vehicle_streaming_range 250 This is the range for unmanned vehicle sync.
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 src= "admin", "freeroam", "speedometer" Resources to automatically start after the server starts.
announce_lan true Announce to your LAN network.
upnp false Use Universal Plug & Play protocol to automatically port forward.
fqdn [empty or null] 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.
conntimeout true Enables or disables the 60 second reconnect timer.
allowcefdevtool false Enables the use of the CEF dev tools on the client.
whitelist [not included by default] Mod whitelist based on hash
mod [not included by default] Defines an allowed mod.
hash [not included by default] MD5 hash of the mod.
httpserver [not included by default] false Enable an HTTP server for file transfer.
local_address [not included by default] 0.0.0.0 The local IP address to bind the server to.
trust_client_entity_properties [not included by default] false To either allow client-side entity properties to be accepted by the server

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 GTA Network Server</servername>
  <serverport>4499</serverport>
  <maxplayers>50</maxplayers>
  <minclientversion>0.0.0.0</minclientversion>
  <minclientversion_auto_update>true</minclientversion_auto_update>
  <announce>true</announce>
  <password></password>
  <masterserver>http://master.gtanet.work/</masterserver>
  <acl_enabled>true</acl_enabled>
  <loglevel>0</loglevel>
  <log>true</log>
  <global_streaming_range>175</global_streaming_range>
  <player_streaming_range>500</player_streaming_range>
  <vehicle_streaming_range>250</vehicle_streaming_range>
  <vehicle_lagcomp>true</vehicle_lagcomp>
  <onfoot_lagcomp>true</onfoot_lagcomp>
  <refresh_rate>120</refresh_rate>
  <announce_lan>true</announce_lan>
  <upnp>false</upnp>
  <fqdn></fqdn>
  <conntimeout>false</conntimeout>
  <allowcefdevtool>false</allowcefdevtool>

  <resource src="admin" />
  <resource src="freeroam" />
  <resource src="speedometer" />

 
</config>