Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time, psutil
- # Get GTAV process id
- for process in psutil.process_iter(attrs=['name']):
- if process.info['name'] == 'GTA5.exe':
- gtapid = process.pid
- # Create process object
- gta = psutil.Process(gtapid)
- # Suspend, wait, then resume
- gta.suspend()
- time.sleep(70)
- gta.resume()
- # Kill internet, wait, then restart internet
- os.system('ipconfig /release')
- time.sleep(15)
- os.system('ipconfig /renew')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement