// ==UserScript==
// @name GTA GUESSER CH33T
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Cheat for gta geusser
// @include /^https?\:\/\/gta-geoguesser\..*\/.*$/
// @include /^https?\:\/\/.*.gta-geoguesser\..*\/.*$/
// @author ZEFISH
// @license MIT
// @match http://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @noframes
// ==/UserScript==
/* eslint-env es6 */
/* eslint-disable curly, no-undef, no-loop-func, no-return-assign, no-sequences */
console.log("CH33T LOADED")
console.log("DEV BY ZEFISH")
window.addEventListener("keydown", event => {
if (event.code == "F4") {
async function cheets() {
gameDone = true;
setGuess = true;
clearInterval(countdownInterval);
// Calculate the distance to correct location and score
let guessedGtaLocation = convertToGameCoord(_MAP_markerStore[0].position.lat(), _MAP_markerStore[0].position.lng());
guessedGtaLocation.x = window.startCord[0]
guessedGtaLocation.y = window.startCord[1]
let distanceDiff = parseInt(distance(guessedGtaLocation.x, guessedGtaLocation.y, window.startCord[0], window.startCord[1]));
let score;
if (!setGuess) {
score = 0;
} else {
score = parseInt((maxScore - ((distanceDiff * distanceDiff)/100)));
if(distanceDiff <= 50){
// If the guess was 50m near the correct Location you get the full score
score = maxScore;
}
if(score < 0){
score = 0
}
}
// Make the mini-map bigger
let mapHolder = document.getElementById("map-holder");
mapHolder.style.width = "100%";
mapHolder.style.height = "75vh";
mapHolder.style.top = "0";
mapHolder.style.right = "0";
// Make panorama and guess Button invisible
document.getElementById("panorama").style.display = "none";
document.getElementById("guessBtn").style.display = "none";
document.getElementById("homeBtn").style.display = "none";
document.getElementById("gameSection").style.marginBottom = "60rem";
// Make score card visisble and set its values
let scoreCard = document.getElementById("scoreCard");
scoreCard.style.display = "block";
document.getElementById("roundCount").innerText = `Round ${currentRound} / ${roundAmount}`;
if(!setGuess){
document.getElementById("guessDeviation").innerHTML = "You did not place a Marker..."
}else{
document.getElementById("guessDeviation").innerHTML = "Your guess was <b>" + distanceDiff.toString() + "m</b> from the correct location"
}
document.getElementById("guessPoints").innerText = "You earned " + score.toString() + " Points";
// Set Score Bar Score
document.getElementById("scoreBar").style.width = ((score / maxScore) * 100).toString() + "%";
// Set score, etc. as cookies
setCookie("currentRound", (parseInt(currentRound) + 1).toString(), 7);
setCookie("round" + currentRound + "Score", (score).toString(), 7);
setCookie("round" + currentRound + "correctCord", window.startCord.toString(), 7);
setCookie("round" + currentRound + "guessedCord", guessedGtaLocation.x + ", " + guessedGtaLocation.y, 7);
clearAllMarkers();
createMarker(false, false, new MarkerObject("temp", new Coordinates(window.startCord[0], window.startCord[1], 0), MarkerTypes.flag, "", ""), ""); // Mark the correct location on the Map
createMarker(false, false, new MarkerObject("temp", new Coordinates(guessedGtaLocation.x, guessedGtaLocation.y, 0), MarkerTypes.user, "", ""), ""); // Mark the guessed location on the Map
drawLine(convertToMapGMAP(guessedGtaLocation.x, guessedGtaLocation.y), convertToMapGMAP(window.startCord[0], window.startCord[1]), "black"); // Draw a line between the correct location and the user guessed location
}
console.log("INJECTED")
cheets()
}
})