Jump to content

Challenges in Creating a Mod Menu for Free Fire: Sensitivity Settings as a PC Player


4 posts in this topic

Recommended Posts

Posted

and well, I'm having problems with creating a hack for free fire due to its peculiarity and I want to make a mod menu that allows you to configure the sensitivity of the game as if you were a PC player, the problem is that I have no experience and I don't know of codes, who could create or help me create a code for this hack?

I hope you can help me although I know that this task is quite a challenge.

Posted

My code so far: 

#import "MyTweak.h"

%hook SBLaunchAlert

- (void)alertViewWillShow:(UIAlertView*)alertView {
    %orig;
    
    UIAlertView *customAlert = [[UIAlertView alloc] initWithTitle:@"¡Hola!"
                                                         message:@"Esta es tu alerta personalizada"
                                                        delegate:nil
                                               cancelButtonTitle:@"OK"
                                               otherButtonTitles:nil];
    [customAlert show];
}

%end

%hook SBTouchHandler

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    %orig;
    
    UIActionSheet *sensitivityMenu = [[UIActionSheet alloc] initWithTitle:@"Sensibilidad"
                                                                delegate:nil
                                                       cancelButtonTitle:@"Cancelar"
                                                  destructiveButtonTitle:nil
                                                       otherButtonTitles:@"Opción 1", @"Opción 2", nil];
    [sensitivityMenu showFromRect:[touches.anyObject locationInView:touches.anyObject.window]
                             inView:touches.anyObject.window
                        animated:YES];
    
    if ([sensitivityMenu clickedButtonIndex] == 0) {
        // Acción para la opción 1
    } else if ([sensitivityMenu clickedButtonIndex] == 1) {
        // Acción para la opción 2
    }
}

%end

Posted (edited)

Update version :

#import "MyTweak.h"


%hook GarenaFreeFire

- (void)showAlert {
    %orig;
    
    // Muestro mi alerta personalizada
    UIAlertController *customAlert = [UIAlertController alertControllerWithTitle:@"¡Hola!"
                                                                         message:@"Esta es tu alerta personalizada"
                                                                  preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
    [customAlert addAction:okAction];
    [self presentViewController:customAlert animated:YES completion:nil];
}

- (void)showSensitivityMenu {
    %orig;
    
    // Muestro mi menú de sensibilidad personalizado
    UIAlertController *sensitivityMenu = [UIAlertController alertControllerWithTitle:@"Sensibilidad"
                                                                             message:nil
                                                                      preferredStyle:UIAlertControllerStyleActionSheet];
    UIAlertAction *option1 = [UIAlertAction actionWithTitle:@"Opción 1" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        // Acción para la opción 1
    }];
    UIAlertAction *option2 = [UIAlertAction actionWithTitle:@"Opción 2" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        // Acción para la opción 2
    }];
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancelar" style:UIAlertActionStyleCancel handler:nil];
    
    [sensitivityMenu addAction:option1];
    [sensitivityMenu addAction:option2];
    [sensitivityMenu addAction:cancelAction];
    
    [self presentViewController:sensitivityMenu animated:YES completion:nil];
}

%end
 

Updated by Danny Dariel
Posted

Update my code :

#import <UIKit/UIKit.h>
#import <GarenaFreeFire/GarenaFreeFire.h>

%hook GarenaFreeFire

- (void)showAlert {
    %orig; // Original call to showAlert function

    dispatch_async(dispatch_get_main_queue(), ^{
        [self showAlertCustom];
    });
}

- (void)showAlertCustom {
    UIAlertController *customAlert = [UIAlertController alertControllerWithTitle:@"Hello!"
                                                                        message:@"Hacks for everyone"
                                                                 preferredStyle:UIAlertControllerStyleActionSheet];

    UIAlertAction *customAction = [UIAlertAction actionWithTitle:@"Custom Option"
                                                           style:UIAlertActionStyleDefault
                                                         handler:^(UIAlertAction *action) {
                                                             [self showSensitivityMenu];
                                                         }];
    [customAlert addAction:customAction];
    [self presentViewController:customAlert animated:YES completion:nil];
}

- (void)showSensitivityMenu {
    // Put your sensitivity menu code here (make sure it uses %orig; if needed)
    %orig; // calling original `showSensitivityMenu` method
    
    // Add custom logic for sensitivity menu, independent settings for vertical and horizontal sensitivity
}

// Assuming showSensibilityVertical and showSensibilityHorizontal are needed methods
- (void)showSensibilityVertical {
    // Put your vertical sensitivity logic here
    %orig; // calling original `showSensibilityVertical` method
}

- (void)showSensibilityHorizontal {
    // Put your horizontal sensitivity logic here
    %orig; // calling original `showSensibilityHorizontal` method
}

%end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Arena Heroes: Online RPG v1.9.0 [ +2 Cheats ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4
       

      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
      • 20 replies
    • Arena Heroes: Online RPG v1.9.0 [ +2 Jailed ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4


      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
      • 11 replies
    • Dream Resort - Match 3 Games v1.3.8 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 11 replies
    • Dream Resort - Match 3 Games v1.3.8 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 12 replies
    • Heroes vs. Hordes: Survivor v3.9.0 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 59 replies
    • Heroes vs. Hordes: Survivor v3.9.0 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 72 replies
    • Slot Clash! v1.2 [+3 Cheats]
      Modded/Hacked App: Slot Clash! By Handan Simay Okcu
      Bundle ID: com.game.slotclash
      App Store Link: https://apps.apple.com/us/app/slot-clash/id6740770886?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and spend)
      - Add Battle Currency (Enable inside battle and spend)
      • 0 replies
    • Slot Clash! v1.2 [+3 Jailed Cheats]
      Modded/Hacked App: Slot Clash! By Handan Simay Okcu
      Bundle ID: com.game.slotclash
      App Store Link: https://apps.apple.com/us/app/slot-clash/id6740770886?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and spend)
      - Add Battle Currency (Enable inside battle and spend)
      • 1 reply
    • Crossy Road v7.3 +5 Jailed Cheats [ Unlimited Coins ]
      Modded/Hacked App: Crossy Road By Hipster Whale Pty Ltd
      Bundle ID: com.hipsterwhale.crossy
      iTunes Store Link: https://apps.apple.com/us/app/crossy-road/id924373886?uo=4


      Hack Features:
      - Unlimited Coins -> Earn some.
      - God Mode
      - Score Hack -> Earn 100 points for every jump.
      -- All Characters Unlocked
      -- No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Crossy Road v6.5.0 +5 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 49 replies
    • Whispers - Interactive Stories v2.3.0 +2 Jailed Cheats [ Free Choices ]
      Modded/Hacked App: Whispers: Interactive Stories By GAMEHAUS LIMITED
      Bundle ID: com.twincat.stories
      iTunes Store Link: https://apps.apple.com/us/app/whispers-interactive-stories/id1546336250
       

      Hack Features:
      - All Chapters Unlocked
      - Free Premium Choices


      Jailbreak required hack(s): [Mod Menu Hack] Whispers: Interactive Stories v1.4.9 +2 Cheats [ Free Choices ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 280 replies
    • Whispers - Interactive Stories v2.3.0 +2 Cheats [ Free Choices ]
      Modded/Hacked App: Whispers: Interactive Stories By GAMEHAUS LIMITED
      Bundle ID: com.twincat.stories
      iTunes Store Link: https://apps.apple.com/us/app/whispers-interactive-stories/id1546336250
       

      Hack Features:
      - All Chapters Unlocked
      - Free Premium Choices


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 173 replies
    • Smashero.io - Hack N Slash RPG v1.17.1 +2 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Smashero.io - Hack N Slash RPG v3.3 +2 Cheats [ God / O-HK ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 30 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines