Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- registerForEvent("onDraw", function()
- if (drawWindow) then
- ImGui.SetWindowPos(300, 100, ImGuiCond.FirstUseEver)
- ImGui.SetWindowSize(225, 250, ImGuiCond.Appearing)
- ImGui.PushStyleColor(ImGuiCol.Border, 243, 230, 0, 1)
- ImGui.PushStyleColor(ImGuiCol.Tab, 243, 230, 0, 0.75)
- ImGui.PushStyleColor(ImGuiCol.TabHovered, 243, 230, 0, 0.85)
- ImGui.PushStyleColor(ImGuiCol.TabActive, 243, 230, 0, 1)
- -- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
- if (ImGui.Begin("CITY H4CK")) then
- local buttonWidth = -1
- local buttonHeight = 20
- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
- if (ImGui.BeginTabBar("CITYH4CKTABS")) then
- if (ImGui.BeginTabItem("Doors")) then
- ImGui.PopStyleColor()
- ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
- ImGui.Spacing()
- if (ImGui.Button("Open Door", buttonWidth, buttonHeight)) then
- CityHack.Door.Open()
- end
- if (ImGui.Button("Close Door", buttonWidth, buttonHeight)) then
- CityHack.Door.Close()
- end
- if (ImGui.Button("Toggle Lock", buttonWidth, buttonHeight)) then
- CityHack.Door.ToggleLock()
- end
- if (ImGui.Button("Toggle Seal", buttonWidth, buttonHeight)) then
- CityHack.Door.ToggleSeal()
- end
- if (ImGui.Button("Set Auto Door", buttonWidth, buttonHeight)) then
- CityHack.Door.Auto()
- end
- ImGui.PopStyleColor()
- ImGui.EndTabItem()
- end
- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
- if (ImGui.BeginTabItem("Devices")) then
- ImGui.PopStyleColor()
- ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
- ImGui.Spacing()
- if (ImGui.Button("Turn On", buttonWidth, buttonHeight)) then
- CityHack.Device.On()
- end
- if (ImGui.Button("Turn Off", buttonWidth, buttonHeight)) then
- CityHack.Device.Off()
- end
- if (ImGui.Button("Cut Power", buttonWidth, buttonHeight)) then
- CityHack.Device.CutPower()
- end
- ImGui.PopStyleColor()
- ImGui.EndTabItem()
- end
- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
- if (ImGui.BeginTabItem("Cars")) then
- ImGui.PopStyleColor()
- ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
- ImGui.Spacing()
- if (ImGui.Button("Detach All Parts", buttonWidth, buttonHeight)) then
- CityHack.Car.DetachAll()
- end
- if (ImGui.Button("Open All Doors", buttonWidth, buttonHeight)) then
- CityHack.Car.OpenAllDoors()
- end
- if (ImGui.Button("Close All Doors", buttonWidth, buttonHeight)) then
- CityHack.Car.CloseAllDoors()
- end
- if (ImGui.Button("Lock All Doors", buttonWidth, buttonHeight)) then
- CityHack.Car.LockAllDoors()
- end
- if (ImGui.Button("Unlock All Doors", buttonWidth, buttonHeight)) then
- CityHack.Car.UnlockAllDoors()
- end
- if (ImGui.Button("Open All Windows", buttonWidth, buttonHeight)) then
- CityHack.Car.OpenAllWindows()
- end
- if (ImGui.Button("Close All Windows", buttonWidth, buttonHeight)) then
- CityHack.Car.CloseAllWindows()
- end
- ImGui.PopStyleColor()
- ImGui.EndTabItem()
- end
- ImGui.PushStyleColor(ImGuiCol.Text, 0, 0, 0, 1)
- if (ImGui.BeginTabItem("Util")) then
- ImGui.PopStyleColor()
- ImGui.PushStyleColor(ImGuiCol.Text, 255, 255, 255, 1)
- ImGui.Spacing()
- if (ImGui.Button("Dump", buttonWidth, buttonHeight)) then
- CityHack.Utility.Dump()
- end
- if (ImGui.Button("Dump Device PS", buttonWidth, buttonHeight)) then
- CityHack.Utility.DumpPS()
- end
- if (ImGui.Button("Dump Vehicle PS", buttonWidth, buttonHeight)) then
- CityHack.Car.DumpPS()
- end
- ImGui.PopStyleColor()
- ImGui.EndTabItem()
- end
- ImGui.EndTabBar()
- end
- end
- ImGui.PopStyleColor(4)
- ImGui.End()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement