Hi ,
I’m trying to create a login system with the help of spawnmanager.
What I’m trying to do is serve a UI page in the onClientGameTypeStart event after disabling autospawn.
But when I connect to the server, it just says “Awaiting scripts” after loading. i.e its not serving the UI page. When I remove the below line the UI login page loads up but player is spawned automatically before logging in
If I dont set the auto spawn to false, my login page works perfectly but the problem is that player is spawned even before logging in. I want the player to spawn only after logging in
ok this got me past the “Awaiting scripts”
but I’m spawning somewhere now. I can see the character in some location for a short time before the ui page loads and I can hear in game vehicle noise.
I didn’t know we could do manual shutdown with loadscreen. This seems like a simple approach to what I was trying to do in a complicated way. I already had a loadscreen but I tried to load a new UI page after the loadscreen has ended.
Thank you , I’ll try this out
This guide really helped me understand.
Just go through the code given in the GitHub link on the above linked thread and you’ll understand. It’s not that complex really