载入中...

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

50ca0e ctd

278

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

首次上传时间: 2023年8月12日
最后更新时间: 2023年8月13日
最后下载: 1天前

All Versions

 1.0 (current)

278次下载 , 1.0 KB
2023年8月12日

8个评论