setVisible

Can I do this in lua?


if ply:HasPriv(BRONZE) then 
     bronzevip.Visible = True
else
     bronzevip.Visible = False
end

It may be bronzevip.setVisible also :S

Forgot to include “bronzevip” is a part of a Derma menu.

Ok, so what you want to do is make a menu visible only if the player has the right privileges right?

For that yeah you can use **[Panel.SetVisible

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Panel.SetVisible)**, but you could also simply not create it.