Leo Messi Posted September 30, 2017 Posted September 30, 2017 Hello today I've created a script just for test. I need help with something which is; Once I click near the static image it will load another static image, just like CITtransport if any one knows it. GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 489) / 2, (screenH - 328) / 2, 489, 328, "a script.", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(230, 72, 16, 15, "4.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(469, 305, 10, 13, "X", false, GUIEditor.window[1]) end )
Moderators IIYAMA Posted September 30, 2017 Moderators Posted September 30, 2017 https://wiki.multitheftauto.com/wiki/OnClientClick > GUIEditor.button[1] function () https://wiki.multitheftauto.com/wiki/GuiStaticImageLoadImage > GUIEditor.staticimage[1] end 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