Jump to content

[HELP] Change text color when clicked


Recommended Posts

Posted
addEventHandler('onClientGUIClick', getRootElement(), 
    function(button, state, absoluteX, absoluteY) 
        if(source == GUIEditor.label[2]) 
            if(button == 'left') then 
                if(state == 'down') then 
                    guiLabelSetColor(source, red, green, blue) -- set your color when mouse is pushed 
                elseif(state == 'up') then 
                    guiLabelSetColor(source, red, green, blue) -- set your color when mouse is released 
                end 
            end 
        end 
    end 
) 

5acec1ecbc.png

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