Files
Basalt/docs/objects/Basalt/addPlugin.md
Robert Jelic e35708902c Docs
- added a onSelect event for lists
- added docs for onSelect
- added addPlugin and addObject docs
2023-05-10 17:21:17 +02:00

653 B

addPlugin

Description

The basalt.addPlugin method allows you to add new custom plugins to the Basalt framework. This enables extending the framework with additional functionality tailored to specific needs. It's important to note that this method must be called before basalt.autoUpdate and can only be used during the initialization phase, not during runtime.

Parameters

  1. string The path to the Lua file or folder containing the plugin(s).

Usage

  • Loads a custom plugins folder:
local basalt = require("basalt")

-- Add the custom plugin(s):
basalt.addPlugin("plugin")

-- Rest of the code

basalt.autoUpdate()