Help❓ Health ESP being strange

Posts 1–2 of 2 · Page 1 of 1
❓ Health ESP being strange
Not sure how to explain this properly, the pic should explain it all.



Heres the code I used
Code:
-- Health 
local function BESP_HP()
	if GetConVar( "BESP_ESP" ):GetInt() == 1 then
		for k,v in pairs( player.GetAll() ) do
			local pos = ( v:GetShootPos() + Vector( 0, 0, 36 ) ):ToScreen()
			if v:Alive() then
			draw.DrawText( v:Health(), "BESPFONT1", pos.x -18, pos.y, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
			end
		end
	end
end
hook.Add( "HUDPaint", "BESP_HP", BESP_HP )
Is that the code you can leech off the gmod wiki? If so Idk what to tell you...
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us