Garry's Mod Wiki

Panel:DrawOutlinedRect

  Panel:DrawOutlinedRect()

Description

Draws a hollow rectangle the size of the panel object this method is called on, with a border width of 1 px. The border colour is set using surface.SetDrawColor. This should only be called within the object's PANEL:Paint or PANEL:PaintOver hooks, as a shortcut for surface.DrawOutlinedRect.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.