Jump to content

GUI Thing


AJXB

Recommended Posts

Posted

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?

Posted

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 ) 

Posted

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.

Posted
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?

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...