Jump to content

guiCreateLabel


#Honda-R

Recommended Posts

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

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

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