JoZeFSvK Posted November 6, 2013 Share Posted November 6, 2013 Hey i have problem with adding image to checkbox parts from checkbox i try paste guiStaticImage but dont work. who know where i must paste it ? thank checkbox_save = guiCreateCheckBox( X + 210, Y + 300,105,20,"Remember Me.",false,false) guiSetFont(checkbox_save,"default-bold-small") ------------------------------------------------------- local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiCheckBoxSetSelected ( checkbox_save, true ) -- HERE I TRY PASTE BUT DONT WORK guiStaticImageLoadImage(checkImage, "on.png") guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) else guiCheckBoxSetSelected ( checkbox_save, false ) guiSetText ( edit_Login, tostring(username)) -- guiStaticImageLoadImage(checkImage, "off.png") guiSetText ( edit_password, tostring(password)) end end end ------------------------------------------------------- if(button == "left" and state == "up") then if (source == shLogin) then username = guiGetText(edit_Login) password = guiGetText(edit_password) if guiCheckBoxGetSelected ( checkbox_save ) == true then checksave = true else checksave = false end triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password,checksave) end end end Link to comment
Castillo Posted November 6, 2013 Share Posted November 6, 2013 I don't understand, you want to create an image inside a checkbox? Link to comment
MIKI785 Posted November 6, 2013 Share Posted November 6, 2013 This person always copies other people's work. No wonder he doesnt know what to do. Link to comment
JoZeFSvK Posted November 7, 2013 Author Share Posted November 7, 2013 I want create checkbox like image Miki This is not stolen script this script is free in community. I try learn and trying understand lua, but sometimes i dont know. yes when i like script and its client i use from client something things to create new script or edit. Link to comment
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