Halo question

How would i go about changing

function SWEP:DrawHUD()
halo.Add( ents.FindByClass( “player*” ), Color( 255, 0, 255 ), 1, 5, 2, 1, 1 )

So it only shows people on team 1, and 2. And an alive check aswell?

You shouldn’t add halos every frame, it should be done in the “PreDrawHalos” hook.

How would i go about adding halos only when the weapon is drawn for the localplayer with the predrawhook, and the same question remains How would i go about making a team check and alive check for halos ? (Still learning lua)