halo.Add for a single player

I am working on a gamemode called ‘Predator Escape’ i want players to glow when they move for predators.
i tried this:
[LUA]
function GM:PreDrawHalos()
if(LocalPlayer():IsPredator() ) then
for k,v in pairs(player.GetAll()) do
if(v:GetVelocity():Length() > 50) then
halo.Add( player.GetAll(), Color( 255, 0, 0 ), 0, 0, 2, true, false )
end
end
end
end
[/LUA]
its spamming errors. (table expected got userdata), when i replace ‘v’ with player.GetAll() when someone moves, all players glow in predators eyes.
how do i fix this thing

tried, v:GetTable() to, got a useless result.

You haven’t ended the GM function, but I’m not certain if that’s just your pasting.
Also,


function GM:PreDrawHalos()
	if(LocalPlayer():IsPredator() ) then
		local playersToHalo = {}
		for k,v in pairs(player.GetAll()) do
			if (v:GetVelocity():Length() > 50) then
				table.insert(playersToHalo,v)
			end
		end
		halo.Add(playersToHalo, Color( 255, 0, 0 ), 0, 0, 2, true, false )
	end
end

halo.Add needs a table to add halos. Not an individual entity.

well it is, sorry for that. my bad.
EDIT : you saved a year from my life, thanks a lot!