Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function()
  2. local unit = "player"
  3. local current, max = UnitHealth(unit), UnitHealthMax(unit)
  4.  
  5. local health = string.format("%.2f", current/1000) .. "k"
  6. local healthP = ("%i"):format(current / max * 100)
  7. return health .. " - " .. healthP .."%"
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement