resource.exports

From GTA Connected
Jump to navigation Jump to search

Property Server and Client All Games Online and Offline Read-Only

Server 1.0.0, Client 1.0.0

object resource.exports

Description

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

Value

Type Description
object
Object containing functions exported by the resource.

Read-Only

This property is read-only.

Types

This property can only be used on type:

Resource

Notes

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

findResourceByName
getResources
setErrorMode
thisResource

resource.exports
resource.getExport
resource.isStarted
resource.isStarting
resource.name
resource.restart
resource.start
resource.stop


Client Related

findResourceByName
getResources
setErrorMode
thisResource

resource.exports
resource.getExport
resource.isReady
resource.isStarted
resource.isStarting
resource.name
resource.restart
resource.start
resource.stop