# getResourceExportedFunctions (Shared)

> Lists the names of the functions a resource exports in its `meta.xml`, on any side.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Resources and modules
- **URL**: https://wiki.mymp.gg/en/getResourceExportedFunctions

## Syntax

```lua
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

```lua
for _, name in ipairs(getResourceExportedFunctions("bank")) do
    outputDebugString("bank exports " .. name)
end
```

## See also

- [call (Shared)](https://wiki.mymp.gg/en/call.md): Calls a function another resource exports in its meta.xml and returns what it returns.
- [getResourceFromName (Shared)](https://wiki.mymp.gg/en/getResourceFromName.md): Finds a resource by name.
- [import (Shared)](https://wiki.mymp.gg/en/import.md): Runs a resource's module in this script's Lua state, once per state, and gives back what it returned. The globals the module set become this script's.
