GTA GUESSER CH33T

Cheat for gta geusser

  1. // ==UserScript==
  2. // @name GTA GUESSER CH33T
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Cheat for gta geusser
  6. // @include /^https?\:\/\/gta-geoguesser\..*\/.*$/
  7. // @include /^https?\:\/\/.*.gta-geoguesser\..*\/.*$/
  8. // @author ZEFISH
  9. // @license MIT
  10. // @match http://*/*
  11. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  12. // @grant none
  13. // @noframes
  14. // ==/UserScript==
  15.  
  16. /* eslint-env es6 */
  17. /* eslint-disable curly, no-undef, no-loop-func, no-return-assign, no-sequences */
  18.  
  19. console.log("CH33T LOADED")
  20. console.log("DEV BY ZEFISH")
  21.  
  22. window.addEventListener("keydown", event => {
  23. if (event.code == "F4") {
  24. async function cheets() {
  25. gameDone = true;
  26. setGuess = true;
  27.  
  28. clearInterval(countdownInterval);
  29.  
  30. // Calculate the distance to correct location and score
  31. let guessedGtaLocation = convertToGameCoord(_MAP_markerStore[0].position.lat(), _MAP_markerStore[0].position.lng());
  32. guessedGtaLocation.x = window.startCord[0]
  33. guessedGtaLocation.y = window.startCord[1]
  34. let distanceDiff = parseInt(distance(guessedGtaLocation.x, guessedGtaLocation.y, window.startCord[0], window.startCord[1]));
  35.  
  36. let score;
  37.  
  38. if (!setGuess) {
  39. score = 0;
  40. } else {
  41. score = parseInt((maxScore - ((distanceDiff * distanceDiff)/100)));
  42.  
  43. if(distanceDiff <= 50){
  44. // If the guess was 50m near the correct Location you get the full score
  45. score = maxScore;
  46. }
  47. if(score < 0){
  48. score = 0
  49. }
  50. }
  51.  
  52. // Make the mini-map bigger
  53. let mapHolder = document.getElementById("map-holder");
  54. mapHolder.style.width = "100%";
  55. mapHolder.style.height = "75vh";
  56. mapHolder.style.top = "0";
  57. mapHolder.style.right = "0";
  58.  
  59. // Make panorama and guess Button invisible
  60. document.getElementById("panorama").style.display = "none";
  61. document.getElementById("guessBtn").style.display = "none";
  62. document.getElementById("homeBtn").style.display = "none";
  63.  
  64. document.getElementById("gameSection").style.marginBottom = "60rem";
  65.  
  66. // Make score card visisble and set its values
  67. let scoreCard = document.getElementById("scoreCard");
  68. scoreCard.style.display = "block";
  69. document.getElementById("roundCount").innerText = `Round ${currentRound} / ${roundAmount}`;
  70. if(!setGuess){
  71. document.getElementById("guessDeviation").innerHTML = "You did not place a Marker..."
  72. }else{
  73. document.getElementById("guessDeviation").innerHTML = "Your guess was <b>" + distanceDiff.toString() + "m</b> from the correct location"
  74. }
  75. document.getElementById("guessPoints").innerText = "You earned " + score.toString() + " Points";
  76.  
  77. // Set Score Bar Score
  78. document.getElementById("scoreBar").style.width = ((score / maxScore) * 100).toString() + "%";
  79.  
  80. // Set score, etc. as cookies
  81. setCookie("currentRound", (parseInt(currentRound) + 1).toString(), 7);
  82. setCookie("round" + currentRound + "Score", (score).toString(), 7);
  83. setCookie("round" + currentRound + "correctCord", window.startCord.toString(), 7);
  84. setCookie("round" + currentRound + "guessedCord", guessedGtaLocation.x + ", " + guessedGtaLocation.y, 7);
  85.  
  86.  
  87.  
  88. clearAllMarkers();
  89. createMarker(false, false, new MarkerObject("temp", new Coordinates(window.startCord[0], window.startCord[1], 0), MarkerTypes.flag, "", ""), ""); // Mark the correct location on the Map
  90. createMarker(false, false, new MarkerObject("temp", new Coordinates(guessedGtaLocation.x, guessedGtaLocation.y, 0), MarkerTypes.user, "", ""), ""); // Mark the guessed location on the Map
  91. 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
  92.  
  93.  
  94. }
  95. console.log("INJECTED")
  96. cheets()
  97. }
  98. })