xTeacherx Posted May 8, 2012 Share Posted May 8, 2012 Hi All I wanna : change My Text By Edit Gui ! or SetTextColor If Find This Link to comment
Guest Guest4401 Posted May 8, 2012 Share Posted May 8, 2012 Hi All I wanna : change My Text By Edit Gui ! or SetTextColor If Find This What do you mean? You want to change label color? guiLabelSetColor or the text? guiSetText Link to comment
xTeacherx Posted May 8, 2012 Author Share Posted May 8, 2012 i Say : I need To Change text color Link to comment
KenXeiko Posted May 8, 2012 Share Posted May 8, 2012 Then like what karthik said. Use guiLabelSetColor Link to comment
xTeacherx Posted May 8, 2012 Author Share Posted May 8, 2012 client : function onGuiClick (button, state, absoluteX, absoluteY) if (source == setNameColor) then red = guiGetText ( redEdit ) green = guiGetText ( greenEdit ) blue = guiGetText ( blueEdit ) triggerServerEvent ("setPlayerNameTagColor", getLocalPlayer(), red, green, blue) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server : function nameTagColor ( red,green,blue ) setPlayerNametagColor ( source, red,green,blue ) end addEvent( "setPlayerNameTagColor", true ) addEventHandler ( "setPlayerNameTagColor", rootElement, nameTagColor) This script for change name color But i want change ( setPlayerNametagColor ) to ( TextColor ) Link to comment
abu5lf Posted May 8, 2012 Share Posted May 8, 2012 function nameTagColor ( red, green, blue ) setPlayerNametagColor ( source, red, green, blue ) end addEvent( "setPlayerNameTagColor", true ) addEventHandler ( "setPlayerNameTagColor", getRootElement(), nameTagColor) 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