Quick script to pause and restart Grand Theft Auto V or Red Dead Redemption 2 process on PC. Specifically used when playing Grand Theft Auto Online or Red Dead Online as it will put you into a temporary solo lobby.
Additionally it will create a Firewall Rule to block specific ports to extend the Solo Lobby indefinitely. The Firewall Rule can be enabled/disabled as an optional extra.
This Project is similar to the Red Dead Online Solo Lobby Batch Script Project. One uses Batch files and the other PowerShell. There is nothing to install with this script as it will dynamically pull the source code from GitHub.
If you are concern by the trust and permissions required, please check the script first and confirm it is not performing any unauthorised actions.
A once off installation of PS Tools is required.
- Download PSTools from PsTools
- Unzip into a folder of your choice.
- Add the PSTools folder into the Windows Environmental Path (Instructions here).
- Create a new Desktop Shortcut.
- Add either of the following commands below to the Type the location of the item box. Use pwsh.exe if installed.
- Call the Shortcut Suspend Rockstar and click Finish.
- Set the shortcut to permanently Run as Administrator by right-clicking the Shortcut, selecting Properties, click on Advanced, check the Run as Administrator box.
powershell.exe -ExecutionPolicy Bypass -Command "icm -Command ([ScriptBlock]::Create((iwr -Uri 'https://raw.githubusercontent.com/nomadtales/SuspendRockstar/master/Suspend-Rockstar.ps1' -UseBasicParsing).Content))"
pwsh.exe -ExecutionPolicy Bypass -Command "icm -Command ([ScriptBlock]::Create((iwr -Uri 'https://raw.githubusercontent.com/nomadtales/SuspendRockstar/master/Suspend-Rockstar.ps1' -UseBasicParsing).Content))"
- When starting the script it will try and create the FireWall Rule the first time. Enter on Y to Confirm creation.
- Once started either type S to Suspend GTA5 or RDR2 for 10 seconds or F to enable the FireWall Rule.
- Only Enable the FireWall Rule once you are in a Session, otherwise you will not be able to connect to a game.