getServerConfigSetting
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function retrieves server settings which are usually stored in the mtaserver.conf file.
Syntax
mixed getServerConfigSetting ( string name )Required Arguments
- name: MISSING_PARAM_DESC
Returns
- mixed: value
Returns a string containing the current value for the named setting, table if name is module or false if the setting does not exist. If the setting name is serverip , may return the string "auto" on local servers.
Code Examples
shared
This example prints the server minimum allowed client version to the chatbox
outputChatBox( getServerConfigSetting ("minclientversion") )