Please Help Me Make A Derma Panel (All Help Needed)

hi im noodle man, ive posted before trying to do it myself and used ALL the wiki derma guides! so please dont say wiki (unless its new) what i need doing is going to be displayed below

first something to say: i am not lazy i need this for reference needs i phail! at derma when i try

Its In Lua/Autorun/Client Folder

 function testmenu() 

  local DermaPanel = vgui.Create( "DFrame" )
  DermaPanel:SetPos( 50, 50 )
  DermaPanel:SetSize( 350, 400 )
  DermaPanel:SetTitle( "Testing Derma Stuff, Lol" )
  DermaPanel:SetVisible( true )
  DermaPanel:SetDraggable( false )
  DermaPanel:ShowCloseButton( true )
 local PropertySheet = vgui.Create( "DPropertySheet" )
  PropertySheet:SetParent( DermaPanel )
  PropertySheet:SetPos( 5, 30 )
  PropertySheet:SetSize( 340, 315 )
  local Menu1 = vgui.Create( "DCheckBoxLabel" )
  Menu1:SetText( "Noclip" )
  Menu1:SetConVar( "sbox_noclip" )
  Menu1:SetValue( 1 )
  local Menu1 = vgui.Create( "DCheckBoxLabel" )
  Menu1:SetText( "God Mode" )
  Menu1:SetConVar( "sbox_godmode" )
  Menu1:SetValue( 1 )
  local Menu1 = vgui.Create( "DCheckBoxLabel" )
  Menu1:SetText( "PvP Damage" )
  Menu1:SetConVar( "sbox_pvpdamage" )
  Menu1:SetValue( 1 )

--menu 2! 
 local Menu2 = vgui.Create("DButton")
  Menu2:SetParent( DermaPanel )
  Menu2:SetText( "Menu >" )
  Menu2:SetPos(25, 50)
  Menu2:SetSize( 150, 175 )
  Menu2.DoClick = function ( btn )
   local Menu2 = DermaMenu() // Creates the menu
   Menu2:AddOption("This", function() Msg("Hello") end ) // Add options to the menu
   Menu2:AddOption("Is, function() Msg("How") end )
   Menu2:AddOption("A, function() Msg("Are") end )
   Menu2:AddOption("Testfunction() Msg("You") end )
   Menu2:AddOption("Button", function() Msg("?") end )
   Menu2:Open() // Open the menu AFTER adding your options
   local Menu2 = vgui.Create( "DButton" )
  Menu2:SetParent( DermaPanel ) // Set parent to our "DermaPanel"
  Menu2:SetText( "Kill yourself" )
  Menu2:SetPos( 25, 50 )
  Menu2:SetSize( 150, 50 )
  Menu2.DoClick = function ()
   RunConsoleCommand( "kill" ) // What happens when you press the button
  PropertySheet:AddSheet( "Server Control Menu", Menu1, "gui/silkicons/user", false, false, "Control Server Client Here!" )
  PropertySheet:AddSheet( "Test Menu", Menu2, "gui/silkicons/group", false, false, "I Test Stuff Here" ) 

so i have no idea whats wrong i also fail at this! please correct it! or rewrite it,
im starting a gamemode and map from scratch and if i cant do derma ill give up

any help needed!

So… what’s wrong with it? Besides the extra end at the end. Also, this is the wrong forum.

i know and where do i put it and what do i do to gt it to come up!

This should go in “Newbie Questions”.
Try removing that end after concommand.Add(“testmenu”,testmenu).
Also use [lua] tags instead of


Whereshould I put this file and I’ll Try 2morrow


I’m a bit of A fag can u write the code how it should be and the problem is the command don’t work

any more halp

What’s the error?

No error or nothing nothing ever works not even my started gamemode

Ok, dude 1 advice - use Notepad++ , it helps in coding :slight_smile:
You have 1 extra end in the end of the script x.x
Also put end after every button ^^