#Honda-R Posted April 28, 2013 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.
iPrestege Posted April 28, 2013 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 ..
#Honda-R Posted April 28, 2013 Author Posted April 28, 2013 Thanks Prestage. Can you do one more thing ? Make it able to show with HTML color code it show #000000Nick
iPrestege Posted April 28, 2013 Posted April 28, 2013 Label colors do not accept this format just r,g,b !
#Honda-R Posted April 28, 2013 Author Posted April 28, 2013 Label colors do not accept this format just r,g,b ! Snap! Thanjs anyway
Castillo Posted April 28, 2013 Posted April 28, 2013 I think that using "onClientRender" is rather useless, you can use the onClientPlayerChangeNick event to keep the label updated.
iPrestege Posted April 28, 2013 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.. !
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