Hi peeps,
hope you're doing well...

I'm currently rewritting the whole menu system (don't ask why

) and I want to organize the .lua script in separate files, instead of having all the code in one file. So the plan is having a main script, then import all the snippets in a sctructure like this:
- main
-> camera
-> player
-> sound
-> cars
-> tracks
-> etc...
But it's not really working, and I guess is because all the snippets have a section inside the onInit() function, which I'm replicating on each script. So my questions are... can I even have more than one onInit()? Do I have to assign an ID to each snippet? Should I group all the commands inside the onInit() function in a separate file too? (I don't like that much)... what would you do guys?
Thanks in advance!
Cheers