I was wondering if there was a function that could be used to run some codes when a server first starts? Similar to PlayerInitialSpawn, but for the server. The reason I would like to do this is because I have a code that checks to see if SQLite databases have been created (creates them if they are not), and I don’t want the command to run every time a user joins the server. (unless that’s a good thing? xD)
you may use **[Gamemode.InitPostEntity
It’s incredible how many threads are made, asking about this.
No one learns the API, the wiki seems pretty decent to me, though.
Use GM:Initialize() for that.