resource.getExport
Method
Server and Client
Online and Offline
mixed resource.getExport(string exportName)
Parameters
1) | string | exportName | The name of the exported variable. |
Return
mixed | The exported value. |
Types
Shared
Resource
Notes
- To get a resource object, use findResourceByName.
Examples
Example 1 - JavaScript - Server-Side:
var getSkinName = findResourceByName("utils").getExport("getSkinName"); let skinName = getSkinName(skinID);
Example 2 - Lua - Server-Side:
local getSkinName = findResourceByName("utils").getExport("getSkinName"); local skinName = getSkinName(skinID)
Example 3 - Squirrel - Server-Side:
local getSkinName = findResourceByName("utils").getExport("getSkinName"); let skinName = getSkinName(skinID);
Compatibility
There isn't any compatibility information for this method.
Related
Server Related
findResourceByName
getResources
thisResource
resource.exports
resource.getExport
resource.isStarted
resource.isStarting
resource.name
resource.restart
resource.start
resource.stop
Client Related
findResourceByName
getResources
thisResource
resource.exports
resource.getExport
resource.isReady
resource.isStarted
resource.isStarting
resource.name
resource.restart
resource.start
resource.stop