M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
resourceresource|stringThe 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

See also