Jump to content

Why it doesn't works? (createStaticImage)


Oxsotus

Recommended Posts

Hi!

I don't know, why it doesn't works.

function createLoginWindow() 
  
    background = guiCreateStaticImage(10,10,200,200,"bg.png", false) 
  
. 
. 
. 
. 

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),  
    function () 
        -- create the log in window and its components 
        createLoginWindow() 
  
  
        -- enable the players cursor (so they can select and click on the components) 
            showCursor(true) 
             
            guiSetVisible(logreg_window, true) 
             
            guiSetVisible(background, true) 
        -- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening 
            guiSetInputEnabled(true) 
    end 
) 

The picture doesn't loaded.

There are only the login GUI :(

Please help.

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