AddResourceMap: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
xmlnode addResourceMap ( resource Resource, string name, [ dimension = 0 ] )
xmlnode addResourceMap ( resource theResource, string name, [ dimension = 0 ] )
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 13:57, 19 October 2007

This function retrieves a table of all the resources that exist on the server.

Syntax

xmlnode addResourceMap ( resource theResource, string name, [ dimension = 0 ] )

Required Arguments

  • argumentName: description

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • argumentName2: description
  • argumentName3: description

Returns

Returns a table of resources.

Example

This function lists all loaded resources in the console.

function blabla ()
     --this does blabla
end

See Also