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?

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

 

Posted

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.

 

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 ) 

560x95_FFFFFF_09FF00_050505_000000.png

"Querer não é poder, mas tentar é avançar"!

Posted

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.

 

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?

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

 

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.

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.

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