lua menu cheek box..

i am trying to enable a e2 tracker. but i can’t seem to get it right.

[lua]-- Find E2’s
CreateClientConVar( “FindAllE2”, 0 )

if ( GetConVarNumber( “FindAlle2” ) == 0 ) then FindE2=1
else FindE2=0 end

function FindE2()
if(FindE2==1) then
for k, v in pairs(ents.FindByClass(“gmod_wire_expression2”)) do
E2 = v:EyePos()
E2 = E2:ToScreen()
E2Name=tostring(v:GetPlayerName())
draw.DrawText(E2Name, “DefaultFixedOutline”, E2.x, E2.y-15, Color(255,0,0,255),1)
draw.RoundedBox( 2, E2.x-1, E2.y-1, 5, 5, Color(0,0,0,255))
draw.RoundedBox( 2, E2.x, E2.y, 3, 3, Color(255,0,0,255))
end
end
end
hook.Add(“HUDPaint”, “FindE2”, FindE2)

local function Menu( panel )
panel:CheckBox( “Enabled”, “FindAllE2” )
panel:Help( “” )
panel:Help( “This addon will alow you to locate any and all e2’s on a server and display it on your screen.” )

end
local function PopulateToolMenu()
spawnmenu.AddToolMenuOption( “Options”, “PinGish’s Tools”, “E2 Finder”, “E2 Finder”, “”, “”, Menu )
end
hook.Add( “PopulateToolMenu”, “PinGish’s Tools”, PopulateToolMenu )[/lua]