GetResourceInfo

From Multi Theft Auto: Wiki
Revision as of 23:51, 12 April 2007 by Jbeta (talk | contribs)
Jump to navigation Jump to search
Dialog-information.png This article needs checking.

Reason(s): may return a string, bool or nil (?) --jbeta

This function retrieves the value of any attribute in a resource info tag.

Syntax

string getResourceInfo ( resource theResource, string attribute ) 

Required Arguments

  • theResource: the resource we are getting the info from.
  • attribute: the name of the attribute we want info about.

Returns

Returns a string with the attribute value if it exists, false otherwise.

Example

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also