Hooks PluginShouldLoad - brianhang/nutscript2 GitHub Wiki

Description

shouldLoad = PluginShouldLoad(name)

This shared hook is called to see if a plugin should be loaded.

Parameters

Name Description
name The string identifier for the plugin that is about to load.

Returns

Name Description
shouldLoad A boolean for whether or not the plugin should load.

Example

-- Don't load the vendor plugin.
function GM:PluginShouldLoad(name)
    if (name == "vendor") then
        return false
    end
end