AJXB Posted April 4, 2014 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? ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
manawydan Posted April 4, 2014 Posted April 4, 2014 whats enableCursor do? "Querer não é poder, mas tentar é avançar"!
AJXB Posted April 4, 2014 Author Posted April 4, 2014 It shows the cursor? ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
manawydan Posted April 4, 2014 Posted April 4, 2014 try delete enableCursor function. if you no make it. "Querer não é poder, mas tentar é avançar"!
Karuzo Posted April 4, 2014 Posted April 4, 2014 Try using onClientResourceStart. And showCursor instead of enableCursor.
manawydan Posted April 4, 2014 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 ) "Querer não é poder, mas tentar é avançar"!
AJXB Posted April 4, 2014 Author Posted April 4, 2014 Worked, thanks! ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
Karuzo Posted April 4, 2014 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.
AJXB Posted April 4, 2014 Author 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? ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
Dealman Posted April 4, 2014 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. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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