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.12.30 [ +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 
      • 24 replies
    • Arena Heroes: Online RPG v1.12.30 [ +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 
      • 20 replies
    • Magic Defense TD v296 [ +5 Cheats ] Always Win
      Modded/Hacked App: Magic Defense! By OBLIQUE GAMES, Corp.
      Bundle ID: com.ObliqueGames.MagicTowerDefense100
      iTunes Store Link: https://apps.apple.com/us/app/magic-defense/id6475539174?uo=4


      Hack Features:
      - No ADS [ Rewards Free ]

      - Skill Cooldown

      - Damage

      - Never Die

      - Auto Kill Enemy + Freez  [ Always Win ]


      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/
      • 74 replies
    • Magic Defense TD v296 [ +5 Jailed ] Always Win
      Modded/Hacked App: Magic Defense : TD By OBLIQUE GAMES, Corp.
      Bundle ID: com.ObliqueGames.MagicTowerDefense100
      iTunes Store Link: https://apps.apple.com/us/app/magic-defense-td/id6475539174?uo=4



      Hack Features:

      - No ADS [ Rewards Free ]

      - Skill Cooldown

      - Damage

      - Never Die

      - Auto Kill Enemy + Freez  [ Always Win ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 47 replies
    • Heroes vs. Hordes: Survivor v5.1.3 [ +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/
      • 71 replies
    • Heroes vs. Hordes: Survivor v5.1.3 [ +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
      • 85 replies
    • Merge & Blast: Dream Island v2.22.1 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4


      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 13 replies
    • Merge & Blast: Dream Island v2.22.1 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 18 replies
    • Merge Cruise: Mystery Puzzle v0.36.360 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 13 replies
    • Merge Cruise: Mystery Puzzle v0.36.360 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 17 replies
    • Pop Island v1.0.8 [ +1 Cheats ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


      • 13 replies
    • Pop Island v1.0.8 [ +1 Jailed ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


      • 12 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