- Documentation
- Server functions
- getResourceOrganizationalPath
Function
getResourceOrganizationalPath
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()))