Advertisement
quintosh

gmod spawnlist

Jul 6th, 2013
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.90 KB | None | 0 0
  1. --[[ thanks to bob for a few props and the buttons
  2. bind a key to +quinprop_menu
  3. clicking buttons copies the prop to the clipboard, bind the prop yourself by doing "bind e ((clipboard))" for example (no quotes no brackets) ]]
  4.  
  5. local function ShowFrame()
  6.  
  7. Frame = vgui.Create("DFrame")
  8. Frame:SetSize( 761 , 400 )
  9. Frame:SetPos( ScrW() / 2 - Frame:GetWide() / 2 , ScrH() / 2 - Frame:GetTall() / 2  )
  10. Frame:SetTitle("Button menu")
  11. Frame:SetVisible( true )
  12. Frame:ShowCloseButton( true )
  13. Frame.Paint = function()
  14.     draw.RoundedBox( 8, 0, 0, Frame:GetWide(), Frame:GetTall(), Color( 0, 0, 0, 190 ) )
  15. end
  16. Frame:MakePopup()
  17.  
  18.  local BSheet = vgui.Create("DPropertySheet" , Frame)
  19. BSheet:SetSize( 751 , 365 )
  20. BSheet:SetPos( 5 , 25 )
  21. BSheet.Paint = function()
  22.     draw.RoundedBox( 8, 0, 0, BSheet:GetWide(), BSheet:GetTall(), Color( 0, 0, 0, 190 ) )
  23. end
  24.  
  25. local Tab = vgui.Create("DLabel")
  26. Tab:SetParent( BSheet )
  27. Tab:SetPos( 0 , 10 )
  28. Tab:SetText("")
  29.  
  30. local Tab2 = vgui.Create("DLabel")
  31. Tab2:SetParent( BSheet )
  32. Tab2:SetPos( 0 , 10 )
  33. Tab2:SetText("")
  34.  
  35. local Tab3 = vgui.Create("DLabel")
  36. Tab3:SetParent( BSheet )
  37. Tab3:SetPos( 0 , 10 )
  38. Tab3:SetText("")
  39.  
  40. local Tab4 = vgui.Create("DLabel")
  41. Tab4:SetParent( BSheet )
  42. Tab4:SetPos( 0 , 10 )
  43. Tab4:SetText("")
  44.  
  45. local Tab5 = vgui.Create("DLabel")
  46. Tab5:SetParent( BSheet )
  47. Tab5:SetPos( 0 , 10 )
  48. Tab5:SetText("")
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. // Options
  56.  
  57.  
  58.  
  59. local PropsLabel = vgui.Create("DLabel")
  60. PropsLabel:SetParent( Tab )
  61. PropsLabel:SetPos( 13 , 10 )
  62. PropsLabel:SetText("")
  63. PropsLabel:SetTextColor( Color(255 , 255 , 255 , 255 ) )
  64. PropsLabel:SizeToContents()
  65.  
  66. local ESPLabel2 = vgui.Create("DLabel")
  67. ESPLabel2:SetParent( Tab )
  68. ESPLabel2:SetPos( 113 , 10 )
  69. ESPLabel2:SetText("")
  70. ESPLabel2:SetTextColor( Color(255 , 255 , 255 , 255 ) )
  71. ESPLabel2:SizeToContents()
  72.  
  73. local ESPLabel3 = vgui.Create("DLabel")
  74. ESPLabel3:SetParent( Tab )
  75. ESPLabel3:SetPos( 206 , 10 )
  76. ESPLabel3:SetText("")
  77. ESPLabel3:SetTextColor( Color(255 , 255 , 255 , 255 ) )
  78. ESPLabel3:SizeToContents()
  79.  
  80. local ESPLabel4 = vgui.Create("DLabel")
  81. ESPLabel4:SetParent( Tab )
  82. ESPLabel4:SetPos( 13 , 130  )
  83. ESPLabel4:SetText("")
  84. ESPLabel4:SetTextColor( Color(255 , 255 , 255 , 255 ) )
  85. ESPLabel4:SizeToContents()
  86.  
  87. local ESPLabel5 = vgui.Create("DLabel")
  88. ESPLabel5:SetParent( Tab )
  89. ESPLabel5:SetPos( 118.5 , 235 )
  90. ESPLabel5:SetText("")
  91. ESPLabel5:SetTextColor( Color(255 , 255 , 255 , 255 ) )
  92. ESPLabel5:SizeToContents()
  93.  
  94.  
  95. local Props = vgui.Create( "DButton")
  96.     Props:SetSize( 100, 30 )
  97.     Props:SetPos( 10, 30 )
  98.     Props:SetParent( Tab )
  99.     Props:SetText( "flowerbarrel" )
  100.     Props.DoClick = function( button )
  101.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_inferno/flower_barrel_p11.mdl" .. string.char(34))
  102.         end
  103.        
  104.         local Props = vgui.Create( "DButton")
  105.     Props:SetSize( 100, 30 )
  106.     Props:SetPos( 113, 30 )
  107.     Props:SetParent( Tab )
  108.     Props:SetText( "sawblade" )
  109.     Props.DoClick = function( button )
  110.         SetClipboardText(string.char(34) .."gm_spawn models/props_junk/sawblade001a.mdl" .. string.char(34))
  111.         end
  112.  
  113.     local Props = vgui.Create( "DButton")
  114.     Props:SetSize( 100, 30 )
  115.     Props:SetPos( 216, 30 )
  116.     Props:SetParent( Tab )
  117.     Props:SetText( "blueman angle" )
  118.     Props.DoClick = function( button )
  119.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/construct/glass/glass_angle360.mdl" .. string.char(34))
  120.         end
  121.        
  122.         local Props = vgui.Create( "DButton")
  123.     Props:SetSize( 100, 30 )
  124.     Props:SetPos ( 319, 30 )
  125.     Props:SetParent ( Tab )
  126.     Props:SetText( "basket" )
  127.     Props.DoClick = function( button )
  128.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_dust/grainbasket01c.mdl" .. string.char(34))
  129.        
  130.         end
  131.  
  132.             local Props = vgui.Create( "DButton")
  133.     Props:SetSize( 100, 30 )
  134.     Props:SetPos( 10, 30 )
  135.     Props:SetParent( Tab2 )
  136.     Props:SetText( "tides" )
  137.     Props.DoClick = function( button )
  138.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_tides/gate_large.mdl" .. string.char(34))
  139.         end
  140.  
  141.                 local Props = vgui.Create( "DButton")
  142.     Props:SetSize( 100, 30 )
  143.     Props:SetPos( 113, 30 )
  144.     Props:SetParent( Tab2 )
  145.     Props:SetText( "blast door" )
  146.     Props.DoClick = function( button )
  147.         SetClipboardText(string.char(34) .."gm_spawn models/props_lab/blastdoor001c.mdl" .. string.char(34))
  148.         end
  149.        
  150.                 local Props = vgui.Create( "DButton")
  151.     Props:SetSize( 100, 30 )
  152.     Props:SetPos( 216, 30 )
  153.     Props:SetParent( Tab2 )
  154.     Props:SetText( "longlockers" )
  155.     Props.DoClick = function( button )
  156.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_train/Lockers_Long.mdl" .. string.char(34))
  157.         end
  158.        
  159.                 local Props = vgui.Create( "DButton")
  160.     Props:SetSize( 100, 30 )
  161.     Props:SetPos( 319, 30 )
  162.     Props:SetParent( Tab2 )
  163.     Props:SetText( "lockers A" )
  164.     Props.DoClick = function( button )
  165.         SetClipboardText(string.char(34) .."gm_spawn models/props_c17/Lockers001a.mdl" .. string.char(34))
  166.         end
  167.        
  168.                     local Props = vgui.Create( "DButton")
  169.     Props:SetSize( 100, 30 )
  170.     Props:SetPos( 422, 30 )
  171.     Props:SetParent( Tab2 )
  172.     Props:SetText( "lockers B" )
  173.     Props.DoClick = function( button )
  174.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_train/Lockers001a.mdl" .. string.char(34))
  175.         end
  176.                     local Props = vgui.Create( "DButton")
  177.     Props:SetSize( 100, 30 )
  178.     Props:SetPos( 525, 30 )
  179.     Props:SetParent( Tab2 )
  180.     Props:SetText( "fridge" )
  181.     Props.DoClick = function( button )
  182.         SetClipboardText(string.char(34) .."gm_spawn models/props/CS_militia/refrigerator01.mdl" .. string.char(34))
  183.         end
  184.        
  185.                             local Props = vgui.Create( "DButton")
  186.     Props:SetSize( 100, 30 )
  187.     Props:SetPos( 628, 30 )
  188.     Props:SetParent( Tab2 )
  189.     Props:SetText( "tv console" )
  190.     Props.DoClick = function( button )
  191.         SetClipboardText(string.char(34) .. "gm_spawn models/props/CS_militia/television_console01.mdl" .. string.char(34))
  192.         end
  193.        
  194.                             local Props = vgui.Create( "DButton")
  195.     Props:SetSize( 100, 30 )
  196.     Props:SetPos( 10, 65 )
  197.     Props:SetParent( Tab2 )
  198.     Props:SetText( "truck" )
  199.     Props.DoClick = function( button )
  200.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_train/utility_truck.mdl" .. string.char(34))
  201.         end
  202.        
  203.                             local Props = vgui.Create( "DButton")
  204.     Props:SetSize( 100, 30 )
  205.     Props:SetPos( 113, 65 )
  206.     Props:SetParent( Tab2 )
  207.     Props:SetText( "canal bars" )
  208.     Props.DoClick = function( button )
  209.         SetClipboardText(string.char(34) .."gm_spawn models/props_canal/canal_bars004.mdl" .. string.char(34))
  210.         end
  211.        
  212.                             local Props = vgui.Create( "DButton")
  213.     Props:SetSize( 100, 30 )
  214.     Props:SetPos( 319, 65 )
  215.     Props:SetParent( Tab2 )
  216.     Props:SetText( "carousel" )
  217.     Props.DoClick = function( button )
  218.         SetClipboardText(string.char(34) .."gm_spawn models/props_c17/playground_carousel01.mdl" .. string.char(34))
  219.         end
  220.        
  221.                             local Props = vgui.Create( "DButton")
  222.     Props:SetSize( 100, 30 )
  223.     Props:SetPos( 216, 65 )
  224.     Props:SetParent( Tab2 )
  225.     Props:SetText( "shitty canalbar" )
  226.     Props.DoClick = function( button )
  227.         SetClipboardText(string.char(34) .."gm_spawn models/props_canal/pipe_bracket001.mdl" .. string.char(34))
  228.         end
  229.  
  230.        
  231.                                 local Props = vgui.Create( "DButton")
  232.         Props:SetSize( 100, 30 )
  233.     Props:SetPos( 525, 65 )
  234.     Props:SetParent( Tab2 )
  235.     Props:SetText( "gazebo/cage" )
  236.     Props.DoClick = function( button )
  237.         SetClipboardText(string.char(34) .."gm_spawn models/props/cs_havana/gazebo.mdl" .. string.char(34))
  238.         end
  239.  
  240.         local Props = vgui.Create( "DButton")
  241.         Props:SetSize( 100, 30 )
  242.     Props:SetPos( 628, 65 )
  243.     Props:SetParent( Tab2 )
  244.     Props:SetText( "propsareawesome" )
  245.     Props.DoClick = function( button )
  246.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_train/TunnelArch.mdl" .. string.char(34))
  247.         end
  248.        
  249.         local Props = vgui.Create( "DButton")
  250.         Props:SetSize( 100, 30 )
  251.     Props:SetPos( 422, 65 )
  252.     Props:SetParent( Tab2 )
  253.     Props:SetText( "tire" )
  254.     Props.DoClick = function( button )
  255.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/wheels/moped_tire.mdl" .. string.char(34))
  256.         end
  257.  
  258.         local Props = vgui.Create ( "DButton")
  259.         Props:SetSize( 100, 30 )
  260.         Props:SetPos( 525, 65 )
  261.         Props:SetParent( Tab2 )
  262.         Props:SetText( "loud truck" )
  263.         Props.DoClick = function( button )
  264.         SetClipboardText(string.char(34) .. "gm_spawn models/props_vehicles/car003a_physics.mdl" .. string.char(34))
  265.     end
  266.        
  267.         local Props = vgui.Create( "DButton")
  268.         Props:SetSize( 100, 30 )
  269.     Props:SetPos( 10, 30 )
  270.     Props:SetParent( Tab3 )
  271.     Props:SetText( "Rollercoaster" )
  272.     Props.DoClick = function( button )
  273.         SetClipboardText(string.char(34) .."gm_spawn models/XQM/CoasterTrack/slope_225_4.mdl" .. string.char(34))
  274.         end
  275.        
  276.         local Props = vgui.Create( "DButton")
  277.         Props:SetSize( 100, 30 )
  278.     Props:SetPos( 113, 30 )
  279.     Props:SetParent( Tab3 )
  280.     Props:SetText( "storage tank" )
  281.     Props.DoClick = function( button )
  282.         SetClipboardText(string.char(34) .."gm_spawn models/props/de_nuke/storagetank.mdl" .. string.char(34))
  283.         end
  284.        
  285.         local Props = vgui.Create( "DButton")
  286.         Props:SetSize( 100, 30 )
  287.     Props:SetPos( 216, 30 )
  288.     Props:SetParent( Tab3 )
  289.     Props:SetText( "hulladoll" )
  290.     Props.DoClick = function( button )
  291.         SetClipboardText(string.char(34) .."gm_spawn models/props_lab/huladoll.mdl" .. string.char(34))
  292.         end
  293.        
  294.         local Props = vgui.Create( "DButton")
  295.         Props:SetSize( 100, 30 )
  296.     Props:SetPos( 319, 30 )
  297.     Props:SetParent( Tab3 )
  298.     Props:SetText( "cluster" )
  299.     Props.DoClick = function( button )
  300.         SetClipboardText(string.char(34) .."gm_spawn models/props_docks/piling_cluster01a.mdl" .. string.char(34))
  301.         end
  302.        
  303.         local Props = vgui.Create( "DButton")
  304.         Props:SetSize( 100, 30 )
  305.     Props:SetPos( 525, 30 )
  306.     Props:SetParent( Tab3 )
  307.     Props:SetText( "pole" )
  308.     Props.DoClick = function( button )
  309.         SetClipboardText(string.char(34) .."gm_spawn models/props_docks/dockpole01a.mdl" .. string.char(34))
  310.         end
  311.        
  312.             local Props = vgui.Create( "DButton")
  313.         Props:SetSize( 100, 30 )
  314.     Props:SetPos( 628, 30 )
  315.     Props:SetParent( Tab3 )
  316.     Props:SetText( "window 1" )
  317.     Props.DoClick = function( button )
  318.         SetClipboardText(string.char(34) .."gm_spawn models/props/CS_militia/skylight_glass.mdl" .. string.char(34))
  319.         end
  320.        
  321.                     local Props = vgui.Create( "DButton")
  322.         Props:SetSize( 100, 30 )
  323.     Props:SetPos( 10, 65 )
  324.     Props:SetParent( Tab3 )
  325.     Props:SetText( "breen tube" )
  326.     Props.DoClick = function( button )
  327.         SetClipboardText(string.char(34) .."gm_spawn models/props_combine/breen_tube.mdl" .. string.char(34))
  328.         end
  329.  
  330.         local Props = vgui.Create( "DButton")
  331.         Props:SetSize( 100, 30 )
  332.     Props:SetPos( 113, 65 )
  333.     Props:SetParent( Tab3 )
  334.     Props:SetText( "propane tank" )
  335.     Props.DoClick = function( button )
  336.         SetClipboardText(string.char(34) .."gm_spawn models/props_junk/propane_tank001a.mdl" .. string.char(34))
  337.         end
  338.  
  339.         local Props = vgui.Create( "DButton" )
  340.         Props:SetSize( 100, 30 )
  341.     Props:SetPos( 216, 65 )
  342.     Props:SetParent ( Tab3 )
  343.     Props:SetText ( "biohazardtank" )
  344.     Props.DoClick = function( button )
  345.         SetClipboardText(string.char(34) .. "gm_spawn models/props/de_train/biohazardtank.mdl" .. string.char(34))
  346.     end
  347.  
  348.         local Props = vgui.Create( "DButton")
  349.         Props:SetSize( 100, 30 )
  350.     Props:SetPos( 319, 65 )
  351.     Props:SetParent( Tab3 )
  352.     Props:SetText( "portalskydome" )
  353.     Props.DoClick = function( button )
  354.         SetClipboardText(string.char(34) .."gm_spawn models/props_combine/portalskydome.mdl" .. string.char(34))
  355.     end
  356.  
  357.  
  358.         local Props = vgui.Create( "DButton")
  359.         Props:SetSize( 100, 30 )
  360.     Props:SetPos( 422, 30 )
  361.     Props:SetParent( Tab3 )
  362.     Props:SetText( "window 2" )
  363.     Props.DoClick = function( button )
  364.         SetClipboardText(string.char(34) .."gm_spawn models/props/CS_militia/wndw01.mdl" .. string.char(34))
  365.         end
  366.  
  367.         local Props = vgui.Create( "DButton" )
  368.         Props:SetSize( 100, 30 )
  369.     Props:SetPos( 422, 65 )
  370.     Props:SetParent( Tab3 )
  371.     Props:SetText( "wheel" )
  372.     Props.DoClick = function( button )
  373.         SetClipboardText(string.char(34) .. "gm_spawn models/props_phx/wheels/metal_wheel2.mdl" .. string.char(34))
  374.     end
  375.  
  376.         local Props = vgui.Create ( "DButton" )
  377.         Props:SetSize( 100, 30 )
  378.     Props:SetPos( 525, 65 )
  379.     Props:SetParent( Tab3 )
  380.     Props:SetText( "crowbar" )
  381.     Props.DoClick = function( button )
  382.         SetClipboardText(string.char(34) .. "gm_spawn models/weapons/w_crowbar.mdl" .. string.char(34))
  383.     end
  384.  
  385.             local Props = vgui.Create( "DButton")
  386.         Props:SetSize( 100, 30 )
  387.     Props:SetPos( 10, 30 )
  388.     Props:SetParent( Tab4 )
  389.     Props:SetText( "parliament" )
  390.     Props.DoClick = function( button )
  391.         SetClipboardText(string.char(34) .."gm_spawn models/props_rooftop/parliament_dome_destroyed_exterior.mdl" .. string.char(34))
  392.         end
  393.  
  394.                 local Props = vgui.Create( "DButton")
  395.         Props:SetSize( 100, 30 )
  396.     Props:SetPos( 216, 30 )
  397.     Props:SetParent( Tab4 )
  398.     Props:SetText( "project build.3" )
  399.     Props.DoClick = function( button )
  400.         SetClipboardText(string.char(34) .."gm_spawn models/props_buildings/project_building03.mdl" .. string.char(34))
  401.         end
  402.        
  403.                 local Props = vgui.Create( "DButton")
  404.         Props:SetSize( 100, 30 )
  405.     Props:SetPos( 319, 30 )
  406.     Props:SetParent( Tab4 )
  407.     Props:SetText( "prison" )
  408.     Props.DoClick = function( button )
  409.         SetClipboardText(string.char(34) .."gm_spawn models/props_combine/prison01c.mdl" .. string.char(34))
  410.         end
  411.        
  412.                 local Props = vgui.Create( "DButton")
  413.         Props:SetSize( 100, 30 )
  414.     Props:SetPos( 422, 30 )
  415.     Props:SetParent( Tab4 )
  416.     Props:SetText( "building" )
  417.     Props.DoClick = function( button )
  418.         SetClipboardText(string.char(34) .."gm_spawn models/props_buildings/building_002a.mdl" .. string.char(34))
  419.         end
  420.        
  421.  
  422.  
  423.  
  424.             local Props = vgui.Create( "DButton")
  425.         Props:SetSize( 100, 30 )
  426.     Props:SetPos( 113, 30 )
  427.     Props:SetParent( Tab4 )
  428.     Props:SetText( "project build.2" )
  429.     Props.DoClick = function( button )
  430.         SetClipboardText(string.char(34) .."gm_spawn models/props_buildings/project_building02.mdl" .. string.char(34))
  431.         end
  432.  
  433.  
  434.  
  435.         local Props = vgui.Create( "DButton")
  436.         Props:SetSize( 100, 30 )
  437.     Props:SetPos( 525, 30 )
  438.     Props:SetParent( Tab4 )
  439.     Props:SetText( "church" )
  440.     Props.DoClick = function( button )
  441.         SetClipboardText(string.char(34) .."gm_spawn models/props_buildings/row_church_fullscale.mdl" .. string.char(34))
  442.         end
  443.  
  444.        
  445.         local Props = vgui.Create( "DButton")
  446.         Props:SetSize( 100, 30 )
  447.     Props:SetPos( 628, 30 )
  448.     Props:SetParent( Tab4 )
  449.     Props:SetText( "church 2" )
  450.     Props.DoClick = function( button )
  451.         SetClipboardText(string.char(34) .."gm_spawn models/props_buildings/row_res_2_fullscale.mdl" .. string.char(34))
  452.         end
  453.  
  454.             local Props = vgui.Create( "DButton")
  455.         Props:SetSize( 100, 30 )
  456.     Props:SetPos( 10, 30 )
  457.     Props:SetParent( Tab5 )
  458.     Props:SetText( "torpedo" )
  459.     Props.DoClick = function( button )
  460.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/torpedo.mdl" .. string.char(34))
  461.         end
  462.  
  463.         local Props = vgui.Create( "DButton")
  464.         Props:SetSize( 100, 30 )
  465.     Props:SetPos( 113, 30 )
  466.     Props:SetParent( Tab5 )
  467.     Props:SetText( "amraam" )
  468.     Props.DoClick = function( button )
  469.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/amraam.mdl" .. string.char(34))
  470.         end
  471.  
  472.  
  473.     local Props = vgui.Create( "DButton")
  474.         Props:SetSize( 100, 30 )
  475.     Props:SetPos( 216, 30 )
  476.     Props:SetParent( Tab5 )
  477.     Props:SetText( "ww2 bomb" )
  478.     Props.DoClick = function( button )
  479.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/ww2bomb.mdl" .. string.char(34))
  480.         end
  481.        
  482.             local Props = vgui.Create( "DButton")
  483.         Props:SetSize( 100, 30 )
  484.     Props:SetPos( 319, 30 )
  485.     Props:SetParent( Tab5 )
  486.     Props:SetText( "mk 82 bomb" )
  487.     Props.DoClick = function( button )
  488.         SetClipboardText(string.char(34) .."gm_spawn models/props_phx/mk-82.mdl" .. string.char(34))
  489.         end
  490.  
  491.  
  492.  
  493.  
  494.        
  495. BSheet:AddSheet( "Surfprops", Tab, "gui/silkicons/heart", false, false, "" )
  496. BSheet:AddSheet( "Killprops", Tab2, "gui/silkicons/heart", false, false, "" )
  497. BSheet:AddSheet( "Miscellaneous", Tab3, "gui/silkicons/heart", false, false, "" )
  498. BSheet:AddSheet( "Buildings", Tab4, "gui/silkicons/heart", false, false, "" )
  499. BSheet:AddSheet( "Explosives", Tab5, "gui/silkicons/heart", false, false, "" )
  500. end
  501. concommand.Add("+quinprop_menu",ShowFrame)
  502. concommand.Add("-quinprop_menu",function()
  503. Frame:SetVisible( false )
  504. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement