CreateResource: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} This function creates an emptty resource. ==Syntax== <syntaxhighlight lang="lua"> resource createResource ( string resourceName ) </syntaxhighlight> ===Required Arguments=== *'''r...)
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server function}}
{{Server function}}
This function creates an emptty resource.
This function creates an empty resource.


==Syntax==  
==Syntax==  
Line 12: Line 12:


===Returns===
===Returns===
Returns ''true'' if the resource has been created succesfully, ''false'' otherwise.
Returns ''true'' if the resource has been created successfully, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 12:10, 30 December 2007

This function creates an empty resource.

Syntax

resource createResource ( string resourceName )

Required Arguments

  • resourceName: The name of the new resource.

Returns

Returns true if the resource has been created successfully, false otherwise.

Example

This page does not have an example

--add an example here.

See Also