Color players with Green Dot

So im making a radar for this gamemode im working on. So for it all works, but i want players to be highlighted with an indication dot or something.

Ive been searching the Wiki for some time now but alas i cant find it :frowning: any help?


local function OriginCam()
local CamData = {}
CamData.angles = Angle(90,LocalPlayer():EyeAngles().yaw,0)
CamData.origin = LocalPlayer():GetPos()+Vector(0,0,3000)
CamData.x = 1000
CamData.y = 20
CamData.w = ScrW() / 5
CamData.h = ScrH() / 3
render.RenderView( CamData )
end
hook.Add("HUDPaint", "OriginCam", OriginCam)
function whiteSquare()
    surface.SetDrawColor( 0, 204, 0, 255 )
    surface.DrawOutlinedRect( ScrW() / 2 - -316, ScrH() / 10 - 56, 275, 255)
    surface.DrawOutlinedRect( ScrW() / 2 - -315, ScrH() / 10 - 55, 277, 255)
    surface.DrawOutlinedRect( ScrW() / 2 - -314, ScrH() / 10 - 54, 279, 255)
end
hook.Add("HUDPaint", "aWhiteSquare", whiteSquare)
function paint()
draw.WordBox( 2, ScrW() / 2 - -395, ScrH() / 100 - 5, "Shitdar: Created By Zim", "Default", Color(0,150,0,100), Color(204,0,0,255) )
end
hook.Add( "HUDPaint", "TestPaint", paint )


This goes inside a HUDPaint hooked function

[lua]

for k, v in pairs( player.GetAll() ) do

local Position = ( v:GetPos() + Vector( 0, 0, 48 ) ):ToScreen()

local Name = ""

if v == LocalPlayer() then

	Name = ""
	
else

	Name = v:Name()
	
end

draw.SimpleText( Name, "Trebuchet18", Position.x, Position.y, team.getColor( v:Team() ) )

end

[/lua]

Please correct me if that does not work. I haven’t done glua in a while.