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

Function

removeResourceFile

ServerResourcesIdentical to MTA:SA

Deletes a file from the resource folder (works like fileDelete on a path in the resource).

Syntax

bool removeResourceFile(resource theResource, string fileName)

Arguments

theResourceresource
The resource.
fileNamestring
The file path in the resource.

Returns

true if the file was deleted.

Example

removeResourceFile(getThisResource(), "logi/stary.txt")

See also