@kefeblo and mainly for new people coming across this its now as easy as compiling your code as a fresh script and placing it in folder c:/users/<your profile>/appdata/Plutonium/storage/t6/scripts/
make sure the function init() starts the file ie
init()
{
level waittill( "blackscreen_finished" );
your_func();
}