Garry's Mod Wiki

Panel:SetHTML

  Panel:SetHTML( string HTML )

Description

Allows you to set HTML code within a panel.

Arguments

1 string HTML
The HTML code to set.

Example

local HTML = vgui.Create( "HTML", DPanel ) HTML:SetHTML( "<p>Put HTML code here</p>" ) HTML:SetSize( 390, 400 )