- Create your own native hacking game from original GTA
- Customizable Lives, and rotation speed to adjust difficulty
Download the class and put it into your existing client resource Import the file in your client code.
/**
* Trigger a new hacking Game if none is runnning
* @param {string} word 8 Char string that will be the Solution
* @param {number} lives [OPTIONAL] Number of lives. Default 3
* @param {number} minSpeed [OPTIONAL] minimum Rotation Speed of column - Default 10
* @param {number} maxSpeed [OPTIONAL] maximum Rotation Speed of column. Default 100
* @returns {boolean} false if game is already running
*/
alt.emit("HackingGame:Start", word, lives, minSpeed, maxSpeed);
Once done the game will send a reply emit to your code that you can get with:
alt.on("HackingGame:Result", (result) => {
/* Result is a boolean
* true: Player finished the Hack
* false: Player failed the Hack
*/
});
Repo: GTA Chaos Mod Author: DrUnderscore