GetResourceConfig

From Multi Theft Auto: Wiki
Revision as of 09:07, 14 June 2007 by Black Dragon (talk | contribs)
Jump to navigation Jump to search

This function is used to return the root node of a configuration file. (defined in meta.xml)

Syntax

xmlnode getResourceConfig ( resource theResource, string filename )

Required Arguments

  • theResource: The resource from which the function calls the configuration file
  • filename: The exact file name of the configuration file. (e.g. "file.xml" )

Returns

Returns the root node of the specified configuration file. If the file is corrupted, not defined in meta.xml or doesn't exist, returns false.

Example

See Also

Template:FunctionArea functions