import os import getpass user_name = getpass.getuser() #Function for menu def menu(): print(""" *************************** * GTA V Optimization Menu * *************************** * 1 - Optimization type * * 2 - Restore Default * * 3 - Instructions * * 00 - Exit * *************************** """) #Optimization menu part one def Optimization(): print(""" **************************************************** * GTA V Optimization Menu (Page 1) * **************************************************** * 1 - Ultra High * * 2 - Very High * * 3 - High * * 4 - Medium-High * * 5 - Medium * * 6 - Medium-Low * * 7 - Next Page.... * * 0 - Go back... * * 00 - Exit... * **************************************************** """) #Optimization menu part two def Optimization2(): print(""" **************************************************** * GTA V Optimization Menu (Page 2) * **************************************************** * 1 - Low * * 2 - Ultra Low * * 3 - Single Player * * 4 - POTATO!! * * 5 - TOASTER!! * * 6 - CALCULATOR (ONLY NVIDIA GRAPHIC CARD!!!!) * * 0 - Go back... * * 00 - Exit... * **************************************************** """) # Function for Restore def restore(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.close() # Function Optimize (Ultra High) def optimize1(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -ignoreDifferentVideoCard -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 2 (Very High) def optimize2(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 3 (High) def optimize3(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 4 (Medium-High) def optimize4(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 5 (Medium) def optimize5(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 6 (Medium-Low) def optimize6(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 7 (Low) def optimize7(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 8 (Ultra-Low) def optimize8(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function print Menu for Potato def optimize_potato(): print(""" ************************ * Potato Mode!! * ************************ * 1 - Potato * * 2 - Damaged Potato * * 0 - Go Back... * ************************ """) # Function Optimize 9 [Potato!!! (640*480 limited to 30fps)] def optimize_potato1(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Fuction Optimize 10 [Potato!!! (800*600 unlimited fps)] def optimize_potato2(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() # Function print Menu for Toaster def optimize_toaster(): print(""" ************************************* * Toaster mode * ************************************* * 1 - Powerful Toaster * * 2 - Common Toaster * * 3 - Toaster from China * * 4 - Damaged Toaster * * 0 - Go Back... * ************************************* """) # Function Optimize 11 [Powerful - Toaster (800*600 with shadows and unlimited fps)] def optimize_toaster1(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 12 [Common Toaster (800*600 with unlimited fps)] def optimize_toaster2(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 13 [Toaster from China (640*480 with unlimited fps and shadows)] def optimize_toaster3(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize 14 [Damaged Toaster (limited to 30 fps)] def optimize_toaster4(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") # Function Optimize (Single Player) def optimize15(): f = open("C:/Users/" + user_name + "/Documents/Rockstar Games/GTA V/settings.xml","w") f.write(""" SMC_AUTO NVIDIA GeForce RTX 2060 """) f.close() f = open("C:/Users/" + user_name + "/Desktop/commandline.txt","w") f.write("""-fullscreen -hdr -ignoreDifferentVideoCard -noquattransform -DX10 -anisotropicQualityLevel 0 """) f.close() os.system("cls") input("I will make a command file in your /Desktop/....\nPress any key for continue...") os.system("cls") input("Copy that file to the root path of youre GTA V Game...\nPress any key to continue...") os.system("cls") input("I have finished.... Enjoy your optimized GTA V...\nPress any key for continue") os.system("cls") #Base code of the program while True: menu() #Calling the function menu() user_input = str(input("Select an option please >> ")) #Option Selector # Submenu Page 1 if user_input == "1": os.system("cls") Optimization() user_input2 = str(input("Select an Option >> ")) if user_input2 == "1": os.system("cls") optimize1() os.system("cls") elif user_input2 == "2": os.system("cls") optimize2() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "3": os.system("cls") optimize3() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "4": os.system("cls") optimize4() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "5": os.system("cls") optimize5() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "6": os.system("cls") optimize6() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "0": os.system("cls") input("Press nay key for continue...\n") os.system("cls") elif user_input2 == "00": salir = str(input("Do you want exit? 1 = Yes / 2 = No >> ")) if salir == "1": input("Bye Bye!!!") os.system("cls") break else: input("Press any key for continue....") os.system("cls") pass elif user_input2 == "7": os.system("cls") Optimization2() user_input2 = str(input("Select an option please >> ")) if user_input2 == "1": os.system("cls") optimize7() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "2": os.system("cls") optimize8() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "3": os.system("cls") optimize15() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "4": os.system("cls") optimize_potato() user_input2 = str(input("Select an option please >> ")) if user_input2 == "1": optimize_potato1() input("GTA V Optimized...\nPress any key for continue....") elif user_input2 == "2": optimize_potato2() input("GTA V Optimized...\nPress any key for continue....") elif user_input2 == "0": input("Press any key for continue....\n") elif user_input2 == "5": os.system("cls") optimize_toaster() user_input2 = str(input("Select an option please >> ")) if user_input2 == "1": os.system("cls") optimize_toaster1() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "2": os.system("cls") optimize_toaster2() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "3": os.system("cls") optimize_toaster3() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "4": os.system("cls") optimize_toaster4() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "0": input("Press any key for continue....\n") elif user_input2 == "6": os.system("cls") optimize6() input("GTA V Optimized...\nPress any key for continue....") os.system("cls") elif user_input2 == "0": os.system("cls") input("Press nay key for continue...\n") os.system("cls") elif user_input2 == "00": salir = str(input("Do you want exit? 1 = Yes / 2 = No >> ")) if salir == "1": input("Bye Bye!!!") os.system("cls") break else: input("Press any key for continue....") os.system("cls") pass # Method for user input 2 if user_input == "2": os.system("cls") restore() input("Ready youre GTA V config have been restored....\nPress any key for continue....") os.system("cls") # Method For Instructions if user_input == "3": os.system("cls") f = open("Instructions.txt","w") f.write("""Welcome to GTA V Optimization Alfa 0.1!! MADE WITH LOVE BY SMITHPEREZ This script is in PRE-ALFA....it has bugs and is still working on the script This script has been made for optimize GTA V. How to use the script? Only execute it and after select the optimization do you want, after copy the file in your desktop called "commandline" to your GTA V root directory. Can i be banned for use this? No you can't because you're not cheeting or modifying the game system or files, you're only changing the graphic settings with this script. Which are the characteristics of the optimization type? I have ordered it by the higher quality to the lower. 1 - Ultra High = Everything is in the max quality for 720p and without limit of fps 2 - Very High = The same as above but fps limited to 30 3 - High = Without shadows and without fps limits 4 - Medium-High = Medium quality 720p but with fps limited to 30 5 - Medium = Resolution of 800*600 without limits of fps and quality medium 6 - Medium-Low = The same as above but fps limited to 30 7 - Low = Resolution of 640*480 Without limits of fps and quality low 8 - Ultra-Low = The same of above but whitout shadows and fps limited to 30 9 - Potato [Potato] = 640*480 without shadows and reduced texture quality 9.2 - Potato [Damaged Potato] = 800*600 without limits of fps and shadows quality reduced 10 - Toaster [Powerful] = 800*600 Without limits of fps and shadows 10.2 - Toaster [Common] = 800*600 Without limits of fps 10.3 - Toaster [China] = limit of 30 fps with shadows 10.4 - Toaster [Damaged] = limit of 30 fps without shadows and very texture quality reduced 11 - Single Player = 640*480 With limit of 30 fps ("Only use in single player") Notes: i did this script for help the comunity of GTA V and those people who doesn't have a good pc for play GTA V.""") f.close() input("Press any key for continue...\n") input("You will find a file in the same directory as the script with the name instructions...\nPress any key for continue...") os.system("cls") # Method for exit if user_input == "00": salir = str(input("Do you want exit? 1 = Yes / 2 = No >> ")) if salir == "1": input("Bye Bye!!!") os.system("cls") break else: input("Press any key for continue....") os.system("cls") pass