- Documentation
- Shared functions
- 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