AJXB Posted April 4, 2014 Share Posted April 4, 2014 I have this client side event: mainLoginWindow = guiCreateWindow(0,0,100,100,"Window",false) addEvent ( "setLoginWindowVisable", true ) function showLoginWindow () guiSetVisible (mainLoginWindow, true) enableCursor ( true ) end addEventHandler( "setLoginWindowVisable", root, showLoginWindow ) It's triggered using this on the server side: addEventHandler ("onPlayerJoin",root, function () triggerClientEvent( source, "setLoginWindowVisable", source ) end ) Yet GUI Window doesn't show, problem? Link to comment
manawydan Posted April 4, 2014 Share Posted April 4, 2014 try delete enableCursor function. if you no make it. Link to comment
Karuzo Posted April 4, 2014 Share Posted April 4, 2014 Try using onClientResourceStart. And showCursor instead of enableCursor. Link to comment
manawydan Posted April 4, 2014 Share Posted April 4, 2014 or try this local mainLoginWindow = guiCreateWindow(0,0,100,100,"Window",false) addEvent ( "setLoginWindowVisable", true ) function showLoginWindow () guiSetVisible (mainLoginWindow, true) showCursor(true) end addEventHandler( "setLoginWindowVisable", root, showLoginWindow ) Link to comment
Karuzo Posted April 4, 2014 Share Posted April 4, 2014 That won't be the best idea. Since you're triggering everytime a player joins. So everyone will see the login window if another player joins. Link to comment
AJXB Posted April 4, 2014 Author Share Posted April 4, 2014 That won't be the best idea. Since you're triggering everytime a player joins. So everyone will see the login window if another player joins. What won't be? Link to comment
Dealman Posted April 4, 2014 Share Posted April 4, 2014 That won't be the best idea. Since you're triggering everytime a player joins. So everyone will see the login window if another player joins. >The source of this event is the player who joined. He's triggering the event on the source. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now