Hey guys. I have a couple GUIs I use for my server and for some reason, when I reconnect, when it connects me back to the server, they pop up on login. How Can I stop this? I already tried :
PHP Code:
function onPlayerLogin() { MyGUI_Window1.visible = false; }
My guess is that you created the GUIs in the 'function onCreated()' event with a weapon. Check where the guis are scripted and if they are in this event, move them to another event and add a manual call to this (chat command, onWeaponFired() etc).
Otherwise, something may be calling another function to draw them in some other onCreated event...