View Single Post
05-21-21, 04:51 PM   #1
nibsrs
A Defias Bandit
Join Date: May 2021
Posts: 3
Exclamation Create Text Frame with Player's Health

Hey guys, I have zero knowledge in LUA scripting, however I am trying to know a bit more about it. I want to create a simple text on screen which will show the current player's health.
This is what I've done so far, but got stuck:

Code:
local f = CreateFrame("Frame", nil, UIParent)
	f:SetWidth(1)
	f:SetHeight(1)
	f:SetAlpha(1)
	f:SetPoint("CENTER", 0, 0)
	f.text = f:CreateFontString(nil,"ARTWORK")
	f.text:SetFont("Fonts\\FRIZQT__.TTF", 14, "OUTLINE")
	f.text:SetPoint("CENTER", 0, 0);
From here I don't know where to go, can someone help?
  Reply With Quote