extension_get_options

This function returns a struct containing all the options, and their values, for the extension with the given name.

The function will return undefined if the provided extension name is invalid.

 

Syntax:

extension_get_options(extension_name);

ArgumentTypeDescription
extension_nameStringThe name of your extension asset as a string

 

Returns:

Struct

 

Example:

var _options = extension_get_options("MyExtension");
var _enabled = _options.enabled;

This code gets the options struct for an extension and reads a value from it.