Advertisement
architectt

Untitled

Jan 7th, 2021 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.70 KB | None | 0 0
  1.     registerForEvent("onDraw", function()
  2.         if (drawWindow) then
  3.  
  4.             ImGui.SetWindowPos(300, 100, ImGuiCond.FirstUseEver)
  5.             ImGui.SetWindowSize(225, 250, ImGuiCond.Appearing)
  6.             ImGui.PushStyleColor(ImGuiCol.Border, 243, 230, 0, 1)
  7.             ImGui.PushStyleColor(ImGuiCol.Tab, 243, 230, 0, 0.75)
  8.             ImGui.PushStyleColor(ImGuiCol.TabHovered, 243, 230, 0, 0.85)
  9.             ImGui.PushStyleColor(ImGuiCol.TabActive, 243, 230, 0, 1)
  10.             -- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
  11.                
  12.             if (ImGui.Begin("CITY H4CK")) then
  13.                 local buttonWidth = -1
  14.                 local buttonHeight = 20
  15.  
  16.                 ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
  17.                 if (ImGui.BeginTabBar("CITYH4CKTABS")) then
  18.                     if (ImGui.BeginTabItem("Doors")) then
  19.                         ImGui.PopStyleColor()
  20.                         ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
  21.                         ImGui.Spacing()
  22.                        
  23.        
  24.                         if (ImGui.Button("Open Door", buttonWidth, buttonHeight)) then
  25.                             CityHack.Door.Open()
  26.                         end
  27.    
  28.                         if (ImGui.Button("Close Door", buttonWidth, buttonHeight)) then
  29.                             CityHack.Door.Close()
  30.                         end
  31.  
  32.                         if (ImGui.Button("Toggle Lock", buttonWidth, buttonHeight)) then
  33.                             CityHack.Door.ToggleLock()
  34.                         end
  35.  
  36.                         if (ImGui.Button("Toggle Seal", buttonWidth, buttonHeight)) then
  37.                             CityHack.Door.ToggleSeal()
  38.                         end
  39.    
  40.                         if (ImGui.Button("Set Auto Door", buttonWidth, buttonHeight)) then
  41.                             CityHack.Door.Auto()
  42.                         end
  43.  
  44.                         ImGui.PopStyleColor()
  45.                     ImGui.EndTabItem()
  46.                     end
  47.                    
  48.                     ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
  49.                     if (ImGui.BeginTabItem("Devices")) then
  50.                         ImGui.PopStyleColor()
  51.                         ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
  52.                         ImGui.Spacing()
  53.  
  54.                         if (ImGui.Button("Turn On", buttonWidth, buttonHeight)) then
  55.                             CityHack.Device.On()
  56.                         end
  57.  
  58.                         if (ImGui.Button("Turn Off", buttonWidth, buttonHeight)) then
  59.                             CityHack.Device.Off()
  60.                         end
  61.  
  62.                         if (ImGui.Button("Cut Power", buttonWidth, buttonHeight)) then
  63.                             CityHack.Device.CutPower()
  64.                         end
  65.  
  66.                         ImGui.PopStyleColor()
  67.                     ImGui.EndTabItem()
  68.                     end
  69.  
  70.                     ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
  71.                     if (ImGui.BeginTabItem("Cars")) then
  72.                         ImGui.PopStyleColor()
  73.                         ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
  74.                         ImGui.Spacing()
  75.  
  76.                         if (ImGui.Button("Detach All Parts", buttonWidth, buttonHeight)) then
  77.                             CityHack.Car.DetachAll()
  78.                         end
  79.  
  80.                         if (ImGui.Button("Open All Doors", buttonWidth, buttonHeight)) then
  81.                             CityHack.Car.OpenAllDoors()
  82.                         end
  83.        
  84.                         if (ImGui.Button("Close All Doors", buttonWidth, buttonHeight)) then
  85.                             CityHack.Car.CloseAllDoors()
  86.                         end
  87.  
  88.                         if (ImGui.Button("Lock All Doors", buttonWidth, buttonHeight)) then
  89.                             CityHack.Car.LockAllDoors()
  90.                         end
  91.  
  92.                         if (ImGui.Button("Unlock All Doors", buttonWidth, buttonHeight)) then
  93.                             CityHack.Car.UnlockAllDoors()
  94.                         end
  95.  
  96.                        
  97.                         if (ImGui.Button("Open All Windows", buttonWidth, buttonHeight)) then
  98.                             CityHack.Car.OpenAllWindows()
  99.                         end
  100.  
  101.                         if (ImGui.Button("Close All Windows", buttonWidth, buttonHeight)) then
  102.                             CityHack.Car.CloseAllWindows()
  103.                         end
  104.  
  105.                         ImGui.PopStyleColor()
  106.                     ImGui.EndTabItem()
  107.                     end
  108.  
  109.                     ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
  110.                     if (ImGui.BeginTabItem("Util")) then
  111.                         ImGui.PopStyleColor()
  112.                         ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
  113.                         ImGui.Spacing()
  114.  
  115.                         if (ImGui.Button("Dump", buttonWidth, buttonHeight)) then
  116.                             CityHack.Utility.Dump()
  117.                         end
  118.    
  119.                         if (ImGui.Button("Dump Device PS", buttonWidth, buttonHeight)) then
  120.                             CityHack.Utility.DumpPS()
  121.                         end
  122.  
  123.                         if (ImGui.Button("Dump Vehicle PS", buttonWidth, buttonHeight)) then
  124.                             CityHack.Car.DumpPS()
  125.                         end
  126.  
  127.                         ImGui.PopStyleColor()
  128.                     ImGui.EndTabItem()
  129.                     end
  130.                 ImGui.EndTabBar()
  131.                 end
  132.             end
  133.             ImGui.PopStyleColor(4)
  134.             ImGui.End()
  135.         end
  136.     end)    
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement