Jump to content

Digit display format


fairyoggy

Recommended Posts

local health1 = getElementHealth(getPlayerFromName(player))
guiSetText(label1, "HP: "..math.round(health1,2).. " %")

Try this

 

2 hours ago, slapz0r said:

local health1 = getElementHealth(getPlayerFromName(player))
guiSetText(label1, "HP: "..health1.. " %")

How to change digit display format?

Now display like this BE30FdY3HA4.jpg

but how to make that there would be a maximum of 2 digits after the decimal point

26.39 % 

 

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