Code :
Image :
EDIT :Ugh, figured out... it was
PlayerHP[id]instead of
PlayerHP[i]
Sorry about this. You can delete the post now.
edited 2×, last 18.07.18 09:33:31 am
PlayerHP[id]instead of
PlayerHP[i]
stats = { player = {}, max = {spd = 40, hp = 250}, hooks = {"second","join"} } for k,v in pairs(stats.hooks) do 	addhook(v, "_"..v) end function _join(id) 	stats.player[id] = {hp = 100, armor = 0, spd = 0} end function _second() 	for _,id in pairs (player(0,"team2")) do 		parse('hudtxt2 '..id..' 0 "Player HP: '..stats.player[id].hp..'" 40 40') 	end end