So in my client side HUD file I’m trying to reference ply but when I do this I’m just getting an error saying ply is nil. Can someone please explain to me how calling ply works.
[lua]
function DrawPlayerInfo(ply)
local pos = ply:EyePos()
pos.z = pos.z + 15
pos = pos:ToScreen()
pos.y = pos.y - 60
draw.DrawText( ply:Nick(), "PlayerInfo", pos.x, pos.y + 10, Color(200, 0, 0, 255))
end
[/lua]