ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getResourceExportedFunctions

Function

getResourceExportedFunctions

Returns the names of functions a resource exports in meta.xml (<export function="..."/>). In the current server version the list is empty.

Syntax

table getResourceExportedFunctions(resource theResource)

Arguments

theResourceresource
The resource.Optional in MTA:SA: resource theResource = getThisResource()

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

getResourceExportedFunctions(resource theResource = getThisResource())

Returns

A table of names (currently empty).

Example

for _, name in ipairs(getResourceExportedFunctions(getResourceFromName("baza"))) do
    outputServerLog(name)
end

See also