Wird geladen...

Faster Quit - Crash Game on Demand - ICan'tTakeItAnymore 1.0

50ca0e ctd

342

Been made for half fun and half fast quit 😅😅 or if you simply just too bored or can't take it anymore 😅

Made with the help of ChatGPT, Google and a very nicey friend of mine.

First we tried it to make the game exit but unfortunately it wasn't working as intended and causing unintended midplay crashes, so decided to have it kill game process instead. This approach also helped with isolating it from any conflictions with any other scripts or causing an unintended issue.

How to Use?
When you are bored, or when you are annoyed, or when you are raged, just press Alt Q and the game will crash to desktop without any error message.
This way you can ensure your poor keyboard is spared of any happy little accidents or sad major incidents 😅

Requires ScripthookVDotNet installed. Place inside the scripts folder in your root GTA folder.

    Here is the source code for curios ones;

using System;
using System.Diagnostics;
using System.Windows.Forms;
using GTA;
using GTA.Native;

public class QuitGameScript : Script
{
private bool quitting = false;

public QuitGameScript()
{
KeyDown += OnKeyDown;
Tick += OnTick;
}

private void OnKeyDown(object sender, KeyEventArgs e)
{
if (e.Alt && e.KeyCode == Keys.Q && !quitting)
{
quitting = true;
foreach (Process p in Process.GetProcessesByName("GTA5.exe"))
{
p.Kill();
}

foreach (Process p in Process.GetProcessesByName("gta5.exe"))
{
p.Kill();
}

foreach (Process p in Process.GetProcessesByName("Gta5.exe"))
{
p.Kill();
}


foreach (Process p in Process.GetProcessesByName("GTA5"))
{
p.Kill();
}

foreach (Process p in Process.GetProcessesByName("gta5"))
{
p.Kill();
}

foreach (Process p in Process.GetProcessesByName("Gta5"))
{
p.Kill();
}


}
}

private void OnTick(object sender, EventArgs e)
{
// Your regular script logic here
}

static void Main(string[] args)
{
// Display the number of command line arguments.
Console.WriteLine(args.Length);
}

}
Show Full Description

Zuerst hochgeladen: 12. August 2023
Letztes Update: 13. August 2023
Last Downloaded: 21 hours ago

All Versions

 1.0 (current)

342 Downloads , 1 KB
12. August 2023

10 Kommentare