Why doesnt this button work?
Can someone tell my why this doesnt work?
Thanks <3
Code:
function AddToggleButton(n,p,t,b,x,y)
local n = vgui.Create( "Button" )
n:SetParent( p )
n:SetText( t )
n:SetPos( x, y )
n:SetSize( 85, 25 )
n.DoClick = function()
if b then
b = false
else b = true
end
end
end
AddToggleButton(test, main,"test", q["asdf"]["aimbot"], 200,45)

