GetResources
Jump to navigation
Jump to search
This function retrieves a table of all the resources that exist on the server (?).
Syntax
table getResources ()
Returns
Returns a table of resource objects.
Example
This function displays the names of all the resources on the server (?):
function displayResources()
outputConsole("List of resources:")
local resourceTable = getResources() -- get a table of resources
for resourceKey, resourceValue in resourceTable do
-- iterate through the table and output each resource's name
local name = getResourceName(resourceValue)
outputConsole(" " .. name)
end
end
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo
-- leave this unless you complete the function