How do I put a HTML panel in the F4 menu for DarkRP?

Just like the title says… How do I make a HTML panel for the F4 Menu?

I believe this is what you could use to create an HTML panel:

And then to bind it to the F4 key:

Thanks, never knew I could do that! But there’s a another problem, when I try to make the HTML panel , it doesn’t go to the “Rules” tab, is there anyway I can do that?

cl_vgui.lua

[lua]if not F4MenuTabs or not F4MenuTabs:IsValid() then
F4MenuTabs = vgui.Create( “DPropertySheet”, F4Menu)
F4MenuTabs:SetPos(5, 25)
F4MenuTabs:SetSize(760, 550)
–The tabs: Look in showteamtabs.lua for more info
F4MenuTabs:AddSheet(“Money/Commands”, F4Tabs[1], “gui/silkicons/page”, false, false)
F4MenuTabs:AddSheet(“Jobs”, F4Tabs[2], “gui/silkicons/plugin”, false, false)
F4MenuTabs:AddSheet(“Firearms/Entites”, F4Tabs[3], “gui/silkicons/arrow_refresh”, false, false)
F4MenuTabs:AddSheet(“HUD”, F4Tabs[4], “gui/silkicons/application_view_tile”, false, false)
F4MenuTabs:AddSheet(“Admin Settings”, F4Tabs[5], “gui/silkicons/user”, false, false)
F4MenuTabs:AddSheet(“Rules”, F4Tabs[8], “gui/skilkicons/page”, false, false)
if LocalPlayer():IsAdmin() or LocalPlayer().DarkRPVars.Privadmin then
F4MenuTabs:AddSheet(“Admin”, F4Tabs[6], “gui/silkicons/wrench”, false, false)
end
if LocalPlayer():IsSuperAdmin() then
F4MenuTabs:AddSheet(“License weapons”, F4Tabs[7], “gui/silkicons/wrench”, false, false)
end
end[/lua]

showteamtabs.lua

[lua]function Rules()
local MyMenuTab = vgui.Create(“DPanelList”)
function MyMenuTab:Update()
self:Clear(true)
local html = vgui.Create( “HTML”, MyMenuTab)
html:SetHTML("<p>Test because rules are awesome!</p>")
html:SetSize( 390, 400 )

end
return MyMenuTab
end[/lua]

You’ve put it in the wrong order.

It should be:

[lua]if not F4MenuTabs or not F4MenuTabs:IsValid() then
F4MenuTabs = vgui.Create( “DPropertySheet”, F4Menu)
F4MenuTabs:SetPos(5, 25)
F4MenuTabs:SetSize(760, 550)
–The tabs: Look in showteamtabs.lua for more info
F4MenuTabs:AddSheet(“Money/Commands”, F4Tabs[1], “gui/silkicons/page”, false, false)
F4MenuTabs:AddSheet(“Jobs”, F4Tabs[2], “gui/silkicons/plugin”, false, false)
F4MenuTabs:AddSheet(“Firearms/Entites”, F4Tabs[3], “gui/silkicons/arrow_refresh”, false, false)
F4MenuTabs:AddSheet(“HUD”, F4Tabs[4], “gui/silkicons/application_view_tile”, false, false)
F4MenuTabs:AddSheet(“Admin Settings”, F4Tabs[5], “gui/silkicons/user”, false, false)
F4MenuTabs:AddSheet(“Rules”, F4Tabs[6], “gui/skilkicons/page”, false, false)
if LocalPlayer():IsAdmin() or LocalPlayer().DarkRPVars.Privadmin then
F4MenuTabs:AddSheet(“Admin”, F4Tabs[7], “gui/silkicons/wrench”, false, false)
end
if LocalPlayer():IsSuperAdmin() then
F4MenuTabs:AddSheet(“License weapons”, F4Tabs[8], “gui/silkicons/wrench”, false, false)
end
end[/lua]

Welp, I should stop making stupid mistakes

I made the same mistake when I first tried something similar, we all make mistakes.