GetResourceMapRootElement

From Multi Theft Auto: Wiki
Revision as of 19:13, 23 June 2009 by Awwu (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

string 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

Shared