Đang tải...

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

50ca0e ctd

337

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

Tải lên lần đầu: 12 Tháng tám, 2023
Cập nhật lần cuối: 13 Tháng tám, 2023
Last Downloaded: 4 ngày trước

All Versions

 1.0 (current)

337 tải về , 1 KB
12 Tháng tám, 2023

10 Bình luận