by illidans4 » Sun Nov 09, 2014 2:14 pm
I don't understand, it doesn't matter where a function is declared, only where it is called. If you mean the "env", it's a way of accessing global environment (as UniMod does some tricks when accessing global environment for custom native functions). It shouldn't affect anything whether you put a function declaration in the main scope or in onFirstFrame, it will get called only once in both cases. In the main scope, all custom functions are already accessible.