nut.plugin.loadComponents - brianhang/nutscript2 GitHub Wiki
Description
nut.plugin.loadComponents(plugin, path)
This shared function loads any added components for the given plugin.
Parameters
| Name | Description |
|---|---|
plugin |
The table containing plugin information. |
path |
A string containing where the plugin is located. By default, this uses the plugin.path value. |
Side Effects
- The state of the gamemode may change depending on what loading a component does.
- The PluginLoadedComponents hook is called after all components were loaded.
- The PluginComponentShouldLoad hook is called for each plugin about to load.
Errors
pluginis not a table