util.resource.current
Shared
Returns the name of the resource the calling script belongs to
Syntax
local result = util.resource.current()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
string | bool | result | Name of the calling resource, false otherwise |
Examples
core.engine.print("info", "Running resource:", util.resource.current())