ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. copyResource

Function

copyResource

ServerResourcesIdentical to MTA:SA

Copies a resource under a new name. In the current server version the function is not wired up yet and returns false with a warning.

Syntax

resource copyResource(resource theResource, string newResourceName [, string organizationalPath])

Arguments

theResourceresource
The resource to copy.
newResourceNamestring
The new name.
organizationalPathstring, optional
A subfolder.

Returns

The copy or false.

Example

copyResource(getResourceFromName("race"), "race_kopia")

See also