Jacky3 Posted March 30, 2014 Share Posted March 30, 2014 I need some help, How do i make the label change when i click on it. What code is it. Thaks Link to comment
Weii. Posted March 30, 2014 Share Posted March 30, 2014 addEventHandler("onClientGUIClick", label, function() --change label end , false) It is same as buttons Link to comment
kevenvz Posted March 30, 2014 Share Posted March 30, 2014 local label = guiCreateLabel(0,0,1,1,"Hello",true) addEventHandler("onClientGUIClick",getRootElement(),function() guiSetText(label,"World") end) Link to comment
WhoAmI Posted March 30, 2014 Share Posted March 30, 2014 local label = ( .. ) addEventHandler ( "onClientGUIClick", resourceRoot, function () if ( source == label ) then guiSetText ( label, "text" ) end end ) Link to comment
Jacky3 Posted March 30, 2014 Author Share Posted March 30, 2014 Does anyone know how i trigger the music to play aswell? Link to comment
WhoAmI Posted March 30, 2014 Share Posted March 30, 2014 Sound functions are clientside. You don't have to trigger. Link to comment
Jacky3 Posted March 30, 2014 Author Share Posted March 30, 2014 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 Link to comment
Weii. Posted March 30, 2014 Share Posted March 30, 2014 playSound("sound.mp3") --or playSound3D("sound.mp3",x,y,z) 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