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.