resource.exports: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
(No difference)

Latest revision as of 15:14, 27 April 2020

Property Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read-Only

Available since Server 1.0.0, Client 1.0.0

object resource.exports

The resource.exports property is used to call this resource's exported functions.

Value

object Object containing functions exported by the resource.
readonly This property cannot be changed.

Types

Shared Resource

Notes

Examples

Example 1 - JavaScript - Server-Side:

var skinName = findResourceByName("utils").exports.getSkinName(skinID);


Example 2 - Lua - Server-Side:

local skinName = findResourceByName("utils").exports.getSkinName(skinID)


Example 3 - Squirrel - Server-Side:

local skinName = findResourceByName("utils").exports.getSkinName(skinID);

Compatibility

There isn't any compatibility information for this property.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png findResourceByName
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getResources
icon-iii.png icon-vc.png icon-sa.png icon-iv.png thisResource

icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.exports
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.getExport
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.isStarted
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.isStarting
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.restart
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.start
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.stop


Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png findResourceByName
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getResources
icon-iii.png icon-vc.png icon-sa.png icon-iv.png thisResource

icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.exports
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.getExport
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.isReady
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.isStarted
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.isStarting
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.restart
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.start
icon-iii.png icon-vc.png icon-sa.png icon-iv.png resource.stop