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

    • Matching Story v1.39.01 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Agree
        • Haha
        • Winner
        • Like
      • 20 replies
    • Matching Story v1.39.01 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Haha
        • Like
      • 29 replies
    • Eliminate Undead v1.0 [+2 Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
       
      • 0 replies
    • Eliminate Undead v1.0 [+2 Jailed Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
        • Like
      • 1 reply
    • Loot Lancer v1.0.1 [+3 Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Loot Lancer v1.0.1 [+3 Jailed Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4


       

      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Jailed Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Informative
        • Agree
        • Winner
        • Like
      • 9 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Jailed Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4

       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Winner
        • Like
      • 36 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4


       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 36 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Agree
      • 6 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Jailed Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Winner
        • Like
      • 4 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