Jump to content

Triggering Events


Recommended Posts

Hey guys, i have done well with my login GUI, its working, i can login, but it wont remove the GUI, and it wont change guiSetInputEnabled back to false, so obviously im doing something wrong, now, i have another function which makes guiSetInputEnabled true, so nvm about that, just help me with reinabling chat and hiding the gui. Do you see errors?

Server:

function enableinput() 
triggerClientEvent(client,"afterlogin",getRootElement()) 
end 
addEventHandler("onPlayerLogin",getRootElement(),enableinput) 

Client:

addEvent("afterlogin",true) 
addEventHandler("afterlogin",getRootElement(),  
function ()  
guiSetInputEnabled(false) 
guiSetVisible ( loginwindow, false ) 
end) 

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