GetResources: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function retrieves a table of all the resources that exist on the server. | |||
This function retrieves a table of all the resources that exist on the server | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
table getResources () | table getResources () | ||
Line 10: | Line 8: | ||
===Returns=== | ===Returns=== | ||
Returns a table of resources. | |||
Returns a table of | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function displayResources() | function displayResources() | ||
Line 30: | Line 24: | ||
==See Also== | ==See Also== | ||
{{Resource_functions}} | {{Resource_functions}} | ||
Revision as of 23:45, 12 April 2007
This function retrieves a table of all the resources that exist on the server.
Syntax
table getResources ()
Returns
Returns a table of resources.
Example
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