getResourceExportedFunctions
Shared
Lists the names of the functions a resource exports in its meta.xml, on any side.
table|false getResourceExportedFunctions([resource|string resource = getThisResource()])
Parameters
| Name | Type | Description |
|---|---|---|
| resource | resource|string | The resource, or its name. Without it, the calling resource.default getThisResource() |
Returns
A table of the names, or false if the resource does not exist.
Example
for _, name in ipairs(getResourceExportedFunctions("bank")) do
outputDebugString("bank exports " .. name)
end