#Honda-R Posted April 28, 2013 Share Posted April 28, 2013 Hello GUIEditor.label[1] = guiCreateLabel(277, 221, 111, 15, "'s Stats", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) guiSetProperty(GUIEditor.label[1], "AlwaysOnTop", "True") On the text "'s Stats" i want to do getPlayerName"'s Stats" but i fail. Please add it and show me how to add it correctly. Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 GUIEditor.label[1] = guiCreateLabel(277, 221, 111, 15, "'s Stats", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) guiSetProperty(GUIEditor.label[1], "AlwaysOnTop", "True") addEventHandler("onClientRender",getRootElement(), function ( ) if ( guiGetVisible(GUIEditor.label[1]) == false ) then return end guiSetText(GUIEditor.label[1],""..getPlayerName(localPlayer).." ") end ) Try it not tested .. client .. Link to comment
#Honda-R Posted April 28, 2013 Author Share Posted April 28, 2013 Thanks Prestage. Can you do one more thing ? Make it able to show with HTML color code it show #000000Nick Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 Label colors do not accept this format just r,g,b ! Link to comment
#Honda-R Posted April 28, 2013 Author Share Posted April 28, 2013 Label colors do not accept this format just r,g,b ! Snap! Thanjs anyway Link to comment
Castillo Posted April 28, 2013 Share Posted April 28, 2013 I think that using "onClientRender" is rather useless, you can use the onClientPlayerChangeNick event to keep the label updated. Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 I think that using "onClientRender" is rather useless, you can use the onClientPlayerChangeNick event to keep the label updated. Hmm...You are right but i was thinking maybe he want to change the name to health or or or etc.. ! 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