Jump to content

Checkbox Image


JoZeFSvK

Recommended Posts

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

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

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