GetServerConfigSetting: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server function}} This function retreives server settings which are usually stored in the '''mtaserver.conf''' file. {{New feature|3.0110|1.1| Available in 1.1 and o...")
 
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server function}}
{{Server function}}
This function retreives server settings which are usually stored in the '''mtaserver.conf''' file.
This function retrieves server settings which are usually stored in the '''mtaserver.conf''' file.


{{New feature|3.0110|1.1|
{{New feature|3.0110|1.1|
Line 11: Line 11:
string getServerConfigSetting ( string name )
string getServerConfigSetting ( string name )
</syntaxhighlight>
</syntaxhighlight>
===Required Arguments===
*'''name :''' The name of the setting


===Returns===
===Returns===

Revision as of 01:36, 15 August 2011

This function retrieves server settings which are usually stored in the mtaserver.conf file.

Available in 1.1 and onwards

Syntax

string getServerConfigSetting ( string name )

Required Arguments

  • name : The name of the setting

Returns

Returns a string containing the current value for the named setting, or false if the setting does not exist.

Example

This example prints the server minimum allowed client version to the chatbox

outputChatBox( getServerConfigSetting ("minclientversion") )

See Also