1. Post #1

    April 2011
    3 Posts
    Hi, im trying to make a simple tab with text in the f4 menu for darkrp.
    I have tryd out the toturial: http://www.facepunch.com/threads/1027284-DarkRP-F4-Menu

    This is my tab:
    function MoreInfo()
        local MoreInfoTab = vgui.Create("DPanelList")
                function MoreInfoTab:Update()
                self:Clear(true)
    local text= vgui.Create("DLabel", MoreInfoTab)
    text:SetText("Default Laws/nIf there is no mayor, this laws will count:")
    text:SetColor(Color(255,255,255,255))
    text:SetFont("defaultbold")
    text:SizeToContents()
     
    end
    return MoreInfoTab
    end
    

    1. Does anyone knows how to change the text size for the text?

    2. When i try to use /n for new line, it shows this in the tab: Default Laws/nIf there is no mayor, this laws will count:
    When i realy want:
    Default Laws
    If there is no mayor, this laws will count:
    

    3. And if anyone know i would realy like to know how to change the position for the text.

    Thx for reading, and plz help me

  2. Post #2

  3. Post #3

    April 2011
    3 Posts
    Thx, ill try it out when i get back home :D