Jump to content

guiCreateLabel and getElementHealth


xbenny2506x

Recommended Posts

HI :)

I have a problem with the guiCreateLabel and getElementHealth.

I want that the player see his health. So i have make this script

...
 
local client = getLocalPlayer()
 
local healthtext = guiCreateLabel(0.35,0.40,0.94,0.2, getElementHealth ( client ), true)
guiSetFont ( healthtext, "sa-header" )
guiLabelSetColor ( healthtextt, 255, 234, 0 )
 
...
 
addEventHandler("onClientPlayerJoin", getRootElement(), fullhealth)

But i see nothing!

Can me someone say, how i can make it that the player see his health?

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