youngsinatra99 / fivem-fallouthacking

MIT License
13 stars 10 forks source link

keeps returning false as 'winner' #1

Open Ntecha opened 1 year ago

Ntecha commented 1 year ago

If i close the hack it prints 'false' only , when i complete the hack it prints 'false' and then true or false depending on if i completed or failed the hack

ApolloStudios0 commented 11 months ago

To anyone else looking for a fix - I managed to debug this issue. Change this code and it'll work correctly.

Go into fallouthacking/html/robco-industries/js/terminal.js and search for WinCondition = function() on line 528 by default.

Replace the function with this instead:

WinCondition = function() {
  $.post(`https://${GetParentResourceName()}/Win`);
  Power = "off";
        $("#terminal-background-off").css("visibility", "visible");
        $("#terminal").css("background-image", "url('robco-industries/img/bg-off.png')");
        $("#terminal").html("");
        $("#minigame").hide();
}