Originally Posted by Slakah
yup that would work.
Just a quick note though pMinimap:ADDON_LOADED will be called multiple times even though you've unregistered the event, check the addonarg matches your own addonname before doing anything.
|
Tested it with a simple print inside the function, only ran once