Hooks PluginComponentShouldLoad - brianhang/nutscript2 GitHub Wiki

Description

shouldLoad = PluginComponentShouldLoad(plugin, component)

This shared is called whenever a component is about to load for a plugin. Returning false for this hook prevents a component from loading.

Parameters

Name Description
plugin A table containing the loading plugin's information.
component A string containing the name of the component that is about to load.

Returns

Name Description
shouldLoad true if the component should load, false if it should not