Hey guys, well I have a problem, I have this code to close a GUI, it worked the other week but now I went to test it and it doesn’t could someone point me in the right direction to why this isn’t closing.
[lua] local Button_Close = vgui.Create( “DButton”, FrameInv )
Button_Close:SetPos( 2, FrameInv:GetTall( ) - 25 ) Button_Close:SetSize( FrameInv:GetWide( ) - 4, 20 ) Button_Close:SetText( "Close" ) Button_Close.DoClick = function( ) InvCloseFrame( ) end
function InvCloseFrame( )
if ( FrameInv ) then FrameInv:SetVisible( false ) FrameInv = nil end