Oxsotus Posted July 24, 2013 Posted July 24, 2013 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.
Moderators IIYAMA Posted July 24, 2013 Moderators Posted July 24, 2013 image is inside the meta.xml? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Oxsotus Posted July 24, 2013 Author Posted July 24, 2013 Thank! It's the first problem. The second: I write bad filepath.
Moderators IIYAMA Posted July 24, 2013 Moderators Posted July 24, 2013 Why do you want that? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
papam77 Posted July 24, 2013 Posted July 24, 2013 Why do you want that? I guess for Login Panel createLoginWindow() 99% for login
Moderators IIYAMA Posted July 24, 2013 Moderators Posted July 24, 2013 You are talking about this function right? https://wiki.multitheftauto.com/wiki/FileWrite What is the problem with it? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now