GetResourceExportedFunctions
From Multi Theft Auto: Wiki
Returns a table containing the names of the functions that a resource exports. It will return the exports of the current resource if there is no argument passed in.
Syntax
table getResourceExportedFunctions ( [ resource theResource = getThisResource( ) ] )
Optional Arguments
- theResource: the resource of which you want to know the exported functions.
Returns
Returns a table of function names if successful, false otherwise.
Example
This simple example will output the names of the functions that the "scoreboard" resource exports.
local res = getResourceFromName ( "scoreboard" ) if res then local functionNames = getResourceExportedFunctions ( res ) outputConsole ( "The scoreboard resource exports " .. #functionNames .. " functions:" ) for i, name in ipairs ( functionNames ) do outputConsole ( name ) end else outputConsole ( "Unable to find the scoreboard 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