The addon loading process loads the file(s), executes the stuff that is placed in the main code-flow and after that only events can trigger execution of your code.
Any code that is executed before ADDON_LOADED with the argument of your own addon cant access your SV.
You have to listen for this event. And only after this event occurs make sure it is fired for your addon and setup your stuff after that.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
|