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

Function

getResourceOrganizationalPath

ServerResourcesIdentical to MTA:SA

Returns the subfolder the resource sits in inside resources/ (e.g. [gamemodes]). An empty string when it sits directly in resources/.

Syntax

string getResourceOrganizationalPath(resource theResource)

Arguments

theResourceresource
The resource.

Returns

The path or "".

Example

outputServerLog("Folder: " .. getResourceOrganizationalPath(getThisResource()))

See also