DeleteResource: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{New feature|3.0120|1.2| __NOTOC__ {{Server function}} This function deletes a resource. ==Syntax== <syntaxhighlight lang="lua"> bool deleteResource ( string resourceName ) </syntaxhighlight> ===Req...")
 
No edit summary
Line 20: Line 20:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
==Requirements==
{{Requirements|1.1.1-9.03316|n/a|}}


==See Also==
==See Also==
{{Resource_functions}}
{{Resource_functions}}
[[Category:Needs_Example]]
[[Category:Needs_Example]]

Revision as of 23:40, 21 October 2011

This function deletes a resource.

Syntax

bool deleteResource ( string resourceName )

Required Arguments

  • resourceName: The name of resource to delete.

Returns

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

Example

-- No example yet

Requirements

Minimum server version 1.1.1-9.03316
Minimum client version n/a

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.1.1-9.03316" />

See Also