Resources

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Server Entity Scripts • Assignment Client Scripts

The Resources API enables the default location for different resource types to be overridden.

Methods

Name Return Value Summary
overrideUrlPrefix None

Overrides a path prefix with an alternative path.

restoreUrlPrefix None

Restores the default path for a specified prefix.

Method Details

(static) overrideUrlPrefix( prefix, replacement )

Overrides a path prefix with an alternative path.

Parameters

Name Type Description
prefix string

The path prefix to override, e.g., "atp:/".

replacement string

The replacement path for the prefix.

(static) restoreUrlPrefix( prefix )

Restores the default path for a specified prefix.

Parameters

Name Type Description
prefix string

The prefix of the resource to restore the path for.