daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AddCSLuaFile()
  2.  
  3. if CLIENT then
  4.  
  5. function landingmenu()
  6.  
  7.         if vgui.CursorVisible() then return end
  8.  
  9.         surface.CreateFont("HackMenu.Trebuchet24-64", {
  10.     font = "Star Jedi",
  11.     size = 80,
  12.     weight = 500
  13. })
  14.  
  15. surface.CreateFont("HackMenu.Trebuchet24-32", {
  16.     font = "Star Jedi",
  17.     size = 32,
  18.     weight = 500
  19. })
  20.  
  21.     local DermaPanel = vgui.Create( "DFrame" )
  22.         DermaPanel:SetPos( 100, 100 )
  23.         DermaPanel:SetSize( ScrW() * 0.3, ScrH() * 0.6 )
  24.         DermaPanel:SetTitle( "" )
  25.         DermaPanel:SetDraggable( true )
  26.         DermaPanel:MakePopup()
  27.         DermaPanel:Center()
  28.         DermaPanel:ShowCloseButton( false )
  29.        
  30.         DermaPanel.Paint = function()
  31.             draw.RoundedBox( 8, 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall(), Color( 26, 26, 26, 253 ) )
  32.             draw.SimpleText( "Lande Menue", "HackMenu.Trebuchet24-64", DermaPanel:GetWide()/2, DermaPanel:GetTall()/13, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  33.         end
  34.        
  35.    
  36.     local HolocronKammer = vgui.Create( "DButton", DermaPanel )
  37.         HolocronKammer:SetText( "" )                   
  38.         HolocronKammer:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall()/4 )                
  39.         HolocronKammer:SetSize( 400, 40 )                  
  40.         HolocronKammer.DoClick = function()
  41.             RunConsoleCommand("say", "/akt Landung auf Korriban!" )
  42.             DermaPanel:Remove()
  43.         end
  44.        
  45.         HolocronKammer.Paint = function()
  46.         if HolocronKammer:IsHovered() then
  47.             draw.RoundedBox( 8, 0, 0, HolocronKammer:GetWide(), HolocronKammer:GetTall(), Color( 0, 144, 255, 255 ) )
  48.         else
  49.             draw.RoundedBox( 8, 0, 0, HolocronKammer:GetWide(), HolocronKammer:GetTall(), Color( 40, 40, 40, 255 ) )
  50.         end
  51.             draw.SimpleText( "Korriban", "HackMenu.Trebuchet24-32", HolocronKammer:GetWide()/2, HolocronKammer:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  52.         end
  53.        
  54.     local Schiff = vgui.Create( "DButton", DermaPanel )
  55.         Schiff:SetText( "" )                   
  56.         Schiff:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall()/3 )                
  57.         Schiff:SetSize( 400, 40 )                  
  58.         Schiff.DoClick = function()
  59.             RunConsoleCommand("say", "/akt Landung auf Tython!" )
  60.             DermaPanel:Remove()
  61.         end
  62.        
  63.         Schiff.Paint = function()
  64.         if Schiff:IsHovered() then
  65.             draw.RoundedBox( 8, 0, 0, Schiff:GetWide(), Schiff:GetTall(), Color( 0, 144, 255, 255 ) )
  66.         else
  67.             draw.RoundedBox( 8, 0, 0, Schiff:GetWide(), Schiff:GetTall(), Color( 40, 40, 40, 255 ) )
  68.         end
  69.             draw.SimpleText( "Tython", "HackMenu.Trebuchet24-32", Schiff:GetWide()/2, Schiff:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  70.         end
  71.        
  72.     local Gefaengnis = vgui.Create( "DButton", DermaPanel )
  73.         Gefaengnis:SetText( "" )                   
  74.         Gefaengnis:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall() * 0.422 )                  
  75.         Gefaengnis:SetSize( 400, 40 )                  
  76.         Gefaengnis.DoClick = function()
  77.                  RunConsoleCommand("say", "/akt Landung auf der Ewigen Flotte!" )
  78.                  DermaPanel:Remove()
  79.         end
  80.        
  81.         Gefaengnis.Paint = function()
  82.         if Gefaengnis:IsHovered() then
  83.             draw.RoundedBox( 8, 0, 0, Gefaengnis:GetWide(), Gefaengnis:GetTall(), Color( 0, 144, 255, 255 ) )
  84.         else
  85.             draw.RoundedBox( 8, 0, 0, Gefaengnis:GetWide(), Gefaengnis:GetTall(), Color( 40, 40, 40, 255 ) )
  86.         end
  87.             draw.SimpleText( "Ewige Flotte", "HackMenu.Trebuchet24-32", Gefaengnis:GetWide()/2, Gefaengnis:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  88.         end
  89.        
  90.     local ratstuer = vgui.Create( "DButton", DermaPanel )
  91.         ratstuer:SetText( "" )                 
  92.         ratstuer:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall() * 0.513 )                
  93.         ratstuer:SetSize( 400, 40 )                
  94.         ratstuer.DoClick = function()
  95.                  RunConsoleCommand("say", "/akt Landung auf Illum!" )
  96.                  DermaPanel:Remove()
  97.         end
  98.        
  99.         ratstuer.Paint = function()
  100.         if ratstuer:IsHovered() then
  101.             draw.RoundedBox( 8, 0, 0, ratstuer:GetWide(), ratstuer:GetTall(), Color( 0, 144, 255, 255 ) )
  102.         else
  103.             draw.RoundedBox( 8, 0, 0, ratstuer:GetWide(), ratstuer:GetTall(), Color( 40, 40, 40, 255 ) )
  104.         end
  105.             draw.SimpleText( "illum", "HackMenu.Trebuchet24-32", ratstuer:GetWide()/2, ratstuer:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  106.         end
  107.  
  108.     local endor = vgui.Create( "DButton", DermaPanel )
  109.         endor:SetText( "" )                
  110.         endor:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall() * 0.604 )                   
  111.         endor:SetSize( 400, 40 )                   
  112.         endor.DoClick = function()
  113.                  RunConsoleCommand("say", "/akt Landung auf Endor!" )
  114.                  DermaPanel:Remove()
  115.         end
  116.        
  117.         endor.Paint = function()
  118.         if endor:IsHovered() then
  119.             draw.RoundedBox( 8, 0, 0, endor:GetWide(), endor:GetTall(), Color( 0, 144, 255, 255 ) )
  120.         else
  121.             draw.RoundedBox( 8, 0, 0, endor:GetWide(), endor:GetTall(), Color( 40, 40, 40, 255 ) )
  122.         end
  123.             draw.SimpleText( "Endor", "HackMenu.Trebuchet24-32", endor:GetWide()/2, endor:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  124.         end
  125.  
  126.     local hoth = vgui.Create( "DButton", DermaPanel )
  127.         hoth:SetText( "" )                 
  128.         hoth:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall() * 0.695 )                
  129.         hoth:SetSize( 400, 40 )                
  130.         hoth.DoClick = function()
  131.                  RunConsoleCommand("say", "/akt Landung auf Hoth!" )
  132.                  DermaPanel:Remove()
  133.         end
  134.        
  135.         hoth.Paint = function()
  136.         if hoth:IsHovered() then
  137.             draw.RoundedBox( 8, 0, 0, hoth:GetWide(), hoth:GetTall(), Color( 0, 144, 255, 255 ) )
  138.         else
  139.             draw.RoundedBox( 8, 0, 0, hoth:GetWide(), hoth:GetTall(), Color( 40, 40, 40, 255 ) )
  140.         end
  141.             draw.SimpleText( "Hoth", "HackMenu.Trebuchet24-32", hoth:GetWide()/2, hoth:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  142.         end
  143.        
  144.     local schliessen = vgui.Create( "DButton", DermaPanel )
  145.         schliessen:SetText( "" )                   
  146.         schliessen:SetPos( DermaPanel:GetWide()/6, DermaPanel:GetTall() * 0.85 )                   
  147.         schliessen:SetSize( 400, 40 )                  
  148.         schliessen.DoClick = function()
  149.             DermaPanel:Remove()
  150.         end
  151.        
  152.         schliessen.Paint = function()
  153.         if schliessen:IsHovered() then
  154.             draw.RoundedBox( 8, 0, 0, schliessen:GetWide(), schliessen:GetTall(), Color( 0, 144, 255, 255 ) )
  155.         else
  156.             draw.RoundedBox( 8, 0, 0, schliessen:GetWide(), schliessen:GetTall(), Color( 40, 40, 40, 255 ) )
  157.         end
  158.             draw.SimpleText( "Schlie├čen", "HackMenu.Trebuchet24-32", schliessen:GetWide()/2, schliessen:GetTall()/2, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  159.         end
  160.  
  161. end
  162.  
  163.  
  164. local alreadyopen = false
  165. hook.Add( "Tick", "landingmenutoggle", function()
  166.    if (input.IsKeyDown(KEY_K) and alreadyopen == false) then
  167.     landingmenu()
  168.     alreadyopen = true
  169.     timer.Simple(1,function()
  170.    alreadyopen = false
  171.    end)
  172.    end
  173.  end)
  174. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top