Jump to content

How to make the text change with a click on it


Jacky3

Recommended Posts

Posted
local label = guiCreateLabel(0,0,1,1,"Hello",true) 
addEventHandler("onClientGUIClick",getRootElement(),function() 
guiSetText(label,"World") 
end) 

Posted
local label = ( .. ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
    function () 
        if ( source == label ) then 
            guiSetText ( label, "text" ) 
        end 
    end 
) 

Posted

Can you still tell me the code line for it? Thought i would add it to my IG websites for my RP serv. :) Thanks for your help tho

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