-
Notifications
You must be signed in to change notification settings - Fork 8
Plugins
Daniel K edited this page Jun 28, 2020
·
1 revision
To start off, you need to inherit the FivePD.API.Plugin
class. By doing that, FivePD will only load these resources from the "plugins" folder, if there weren't any errors in the loading process (so if FivePD fails to load, your plugins won't be started or it'll unload the plugins once an error occurs - prevents random NullReferenceExceptions
). Another important note is that the constructor must be internal.
Example:
...
using CitizenFX.Core;
using FivePD.API;
public class MyPlugin : FivePD.API.Plugin
{
// Must be internal!
internal MyPlugin()
{
}
...
}