Skip to main content

Plugin


Namespace: FivePD.API#
File: Source/Plugin.cs#
note

FivePD only loads plugins from the "plugins" folder.

note

The constructor of your class must be internal!

caution

If FivePD could not load properly, your plugins won't be loaded.

caution

If FivePD encounters a fatal error, your plugins will also be affected and won't be usable.

To start off, you need to make a derived class from the base FivePD.API.Plugin class.

Example#

...using CitizenFX.Core;using FivePD.API;
public class MyPlugin : FivePD.API.Plugin{       // Must be internal!    internal MyPlugin()    {
    }    ...}

More plugin examples can be found in the GitHub repository.