GetResourceMapRootElement: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} This function retrieves the root element of a certain map in a specified resource. ==Syntax== <syntaxhighlight lang="lua"> string getResourceMapRootElement ( reso...)
 
mNo edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string getResourceMapRootElement ( resource theResource, string mapName )  
element getResourceMapRootElement ( resource theResource, string mapName )  
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 19:25, 23 June 2009

This function retrieves the root element of a certain map in a specified resource.

Syntax

element getResourceMapRootElement ( resource theResource, string mapName ) 

Required Arguments

  • theResource: the resource of where the map is located
  • mapName: name of the maps which root element we want to retrieve, file extension is required

Returns

Returns an the resource's map root element if the map exists and resource specified was valid and active (currently running), false otherwise.

Example

--TODO

See Also