Jump to content

Function is not being called.


Michael_Sund

Recommended Posts

function showLoginWindow() 
    createLoginWindow() 
    outputChatBox("DEBUG 1 PASSED") 
    if(wdwLogin ~= nil) then 
        guiSetVisible(wdwLogin, true) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    else 
        outputChatBox("An unexpected error has occured and the login GUI could not be created.") 
    end 
end 
  
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showLoginWindow) 

Link to comment
function showLoginWindow() 
    createLoginWindow() 
    outputChatBox("DEBUG 1 PASSED") 
    if (guiGetVisible(wdwLogin) == false) then 
        guiSetVisible(wdwLogin, true) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    else 
        outputChatBox("An unexpected error has occured and the login GUI could not be created.") 
    end 
end 
  
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 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...