Jump to content

GUI Thing


AJXB

Recommended Posts

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

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

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