GetResourceName: 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">
string getResourceName ( resource )
string getResourceName ( resource res )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''resource:''' The resource you wish to get the name of.
*'''res:''' The resource you wish to get the name of.


===Returns===
===Returns===

Revision as of 19:10, 17 August 2007

This function gets the name of the specified resource.

Syntax

string getResourceName ( resource res )

Required Arguments

  • res: The resource you wish to get the name of.

Returns

Returns a string with the resource name in it, or false if the resource does not exist.

Example

This example does...

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

See Also

Template:FunctionArea functions -- leave this unless you complete the function