GetResourceOrganizationalPath
From Multi Theft Auto: Wiki
This function returns the organizational file path (e.g. [admin]) of a resource.
Syntax
string getResourceOrganizationalPath ( resource theResource )
OOP Syntax Help! I don't understand this!
- Method: resource:getOrganizationalPath (...)
Required Arguments
- theResource: the resource of which you want to know the organizational path
Returns
Returns the organizational path of the resource.
Example
This example outputs the path of the current resource when it is started.
addEventHandler("onResourceStart", resourceRoot, function () outputChatBox(getResourceName(resource) .. "'s path: " .. getResourceOrganizationalPath(resource)) end)
See Also
- addResourceConfig
- addResourceMap
- call
- callRemote
- copyResource
- createResource
- deleteResource
- fetchRemote
- getResourceACLRequests
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceInfo
- getResourceLastStartTime
- getResourceLoadFailureReason
- getResourceLoadTime
- getResourceMapRootElement
- getResourceName
- getResourceOrganizationalPath
- getResourceRootElement
- getResourceState
- getResources
- getThisResource
- isResourceArchived
- refreshResources
- removeResourceFile
- renameResource
- restartResource
- setResourceInfo
- startResource
- stopResource
- updateResourceACLRequest
- getRemoteRequests
- getRemoteRequestInfo
- abortRemoteRequest