The basics
This page covers the basic principles of plugin development for x64_dbg.

Exports
A plugin has at least one export. This export must be called pluginit. See the PLUG_INITSTRUCT and the plugin headers for more information. The other valid exports are:

plugstop: called when the plugin is about to be unloaded. Remove all registered commands and callbacks here. Also clean up plugin data.

plugsetup: Called when the plugin initialization was successful, here you can register menus and other GUI-related things.