Garry's Mod Wiki


  DFrame:SetSizable( boolean sizeable )


Sets whether or not the DFrame can be resized by the user.

This is achieved by clicking and dragging in the bottom right corner of the frame.

You can set the minimum size using DFrame:SetMinWidth and DFrame:SetMinHeight.


1 boolean sizeable
Whether the frame should be resizeable or not.


A snippet of code that makes a frame resizable and sets the minimum size to its current size.

frame:SetSizable( true ) frame:SetMinWidth( frame:GetWide() ) frame:SetMinHeight( frame:GetTall() )