Garry's Mod Wiki

VGUIRect

  Panel VGUIRect( number x, number y, number w, number h )

Description

Creates and returns a DShape rectangle GUI element with the given dimensions.

Arguments

1 number x
X position of the created element
2 number y
Y position of the created element
3 number w
Width of the created element
4 number h
Height of the created element

Returns

1 Panel
DShape element