Garry's Mod Wiki

DFrame:SetScreenLock

  DFrame:SetScreenLock( boolean lock )

Description

Sets whether the DFrame is restricted to the boundaries of the screen resolution.

Arguments

1 boolean lock
If true, the frame cannot be dragged outside of the screen bounds