TextData Structure

From Garry's Mod
Revision as of 17:45, 16 April 2014 by Robotboy655 (Talk | contribs)
Jump to: navigation, search
Used for draw.Text.

Type Name Description
string text

Text to be drawn.

string font

The font to draw with. List of default fonts can be found here.

Default: "DermaDefault"

table pos

This holds the X and Y coordinates. Key value 1 is x, key value 2 is y.

number x

The X coordinate.

number y

The Y coordinate.

number xalign

The alignment of the X position. See TEXT_ Enums


number yalign

The alignment of the Y position. See TEXT_ Enums


number color

The text color

Default: color_white

Personal tools