Adding Lines with lua

I have created a vgui.Creat but in the window I want to add like 10 lines but I diden’t descover yet how.
I know how to add if i’m using a tab , but I don’t like it and it don’t look good, so if any one could give me a link were I could found something what can help me.
I want to make a MOTD and I want to add the rules.

What do you mean with “line”?

Example :
1.Some Stuff
2.Don’t care

10.Yes I know

You can use the DLabel to add simple text.
[lua]
// use
behind your sentence to create a new line.

local Label = vgui.Create(“DLabel”, parent)
Label:SetPos(1,1)
Label:SetColor(Color(255,255,255,255))
Label:SetFont(“default”)
Label:SetText(“Hi
I am Royal
:D”)
Label:SizeToContents()

[/lua]

Just in case you mean that ‘…’ to mean a literal line, then look here http://wiki.garrysmod.com/?title=Base_VGUI_Elements_List for “Splitter”. I believe you can create your own panel using it to create a horizontal splitter.

If you meant a line of elements, then here:
For plain text: http://wiki.garrysmod.com/?title=DListView
For actual Derma elements: http://wiki.garrysmod.com/?title=DPanelList
To list actual panels, yes entire panels: http://wiki.garrysmod.com/?title=DPanelSelect

[editline] Aw shit [/editline]
**Oh, and for containment: **http://wiki.garrysmod.com/?title=DPanel

I already resolved this personally.

Thx I used this.

You can also make a table and afterwards loop trough it; Just think it looks nicer.