Jump to content

[iOS 12 UPDATED!!] [NIC TEMPLATE] Mod Menu Theos Template! Easily Create Your Own iGMMs!


1,155 posts in this topic

Recommended Posts

Posted
addTextfieldHook(@"Hook name", @"Description of hook", font, address of function that you are hooking, the name of the function you are using for the hook, the name of the function you aren't using for the hook);

To get the value from the textfield, you'll have to use one of these methods based on what your hooked function return type is:

	int val = [[TextfieldHook getTextfieldValueForHook:@"hook name here"] intValue];
	float val = [[TextfieldHook getTextfieldValueForHook:@"hook name here"] floatValue];

 

If I wanted to add a textfield that allowed the user to input their FOV, I would write this line of code:

addTextfieldHook(@"FOV Textfield", @"Input the value you want for your FOV.", font, 0xc392da, (void *)_getFovHooked, (void *)getFovOrig);

 

 

And the hooked functions would look like this:

	float (*getFovOrig)(void *_this);
	 
	float _getFovHooked(void *_this){
	if([TextfieldHook getTextfieldValueForHook:@"FOV Textfield"] != nil){ //the textfield will be empty on first run, and we don't want to return a nil value
	return [[TextfieldHook getTextfieldValueForHook:@"FOV Textfield"] floatValue];
	}
	 
	return getFovOrig(_this);
	}

 

 

 

NOTICE!

Always add (void *) to the beginning of the last two parameters if you are adding hooks. This is called casting, don't worry about it. Just know that it is needed.

 

Here is what your mod menu will generally look like if you choose green as your theme color and Copperplate-Bold as your font:

Credits:

- me

@DiDA (for animation ideas!)

  • Like 1
Posted

I think I messed something up. Using iPhoneOS11.2 as SDK.

> Making all for tweak AmericanDadHack
==> Compiling Tweak.xm (arm64)…
In file included from Tweak.xm:1:
In file included from /Users/aarivex/americandadhack/Macros.h:1:
In file included from /Users/aarivex/americandadhack/ModMenu.h:11:
In file included from /Users/aarivex/americandadhack/Hack.h:10:
In file included from /Users/aarivex/theos/include/vector:66:
In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:66:
/Users/aarivex/theos/include/cstring:102:12: error: cannot initialize return object of type 'void *' with an rvalue of type 'const void *'
  { return memchr(const_cast<const void*>(__p), __c, __n); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Tweak.xm:1:
In file included from /Users/aarivex/americandadhack/Macros.h:1:
In file included from /Users/aarivex/americandadhack/ModMenu.h:11:
In file included from /Users/aarivex/americandadhack/Hack.h:10:
In file included from /Users/aarivex/theos/include/vector:66:
In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:68:
/Users/aarivex/theos/include/cstdlib:143:3: error: declaration conflicts with target of using declaration already in scope
  abs(long __i) { return labs(__i); }
  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:111:44: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
                                           ^
/Users/aarivex/theos/include/cstdlib:110:11: note: using declaration
  using ::abs;
          ^
/Users/aarivex/theos/include/cstdlib:146:3: error: declaration conflicts with target of using declaration already in scope
  div(long __i, long __j) { return ldiv(__i, __j); }
  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:116:42: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY  ldiv_t div(     long __x,      long __y) _NOEXCEPT {return  ldiv(__x, __y);}
                                         ^
/Users/aarivex/theos/include/cstdlib:117:11: note: using declaration
  using ::div;
          ^
In file included from Tweak.xm:1:
In file included from /Users/aarivex/americandadhack/Macros.h:1:
In file included from /Users/aarivex/americandadhack/ModMenu.h:11:
In file included from /Users/aarivex/americandadhack/Hack.h:10:
In file included from /Users/aarivex/theos/include/vector:66:
In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:70:
In file included from /Users/aarivex/theos/include/iosfwd:49:
In file included from /Users/aarivex/theos/include/bits/postypes.h:46:
/Users/aarivex/theos/include/cwchar:212:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *'
  { return wcschr(const_cast<const wchar_t*>(__p), __c); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aarivex/theos/include/cwchar:218:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *'
  { return wcspbrk(const_cast<const wchar_t*>(__s1), __s2); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aarivex/theos/include/cwchar:224:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *'
  { return wcsrchr(const_cast<const wchar_t*>(__p), __c); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aarivex/theos/include/cwchar:230:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *'
  { return wcsstr(const_cast<const wchar_t*>(__s1), __s2); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aarivex/theos/include/cwchar:236:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *'
  { return wmemchr(const_cast<const wchar_t*>(__p), __c, __n); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Tweak.xm:1:
In file included from /Users/aarivex/americandadhack/Macros.h:1:
In file included from /Users/aarivex/americandadhack/ModMenu.h:11:
In file included from /Users/aarivex/americandadhack/Hack.h:10:
In file included from /Users/aarivex/theos/include/vector:66:
In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:71:
/Users/aarivex/theos/include/bits/stl_pair.h:96:22: error: no template named 'pair'
    operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                     ^
/Users/aarivex/theos/include/bits/stl_pair.h:96:49: error: no template named 'pair'
    operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                                                ^
/Users/aarivex/theos/include/bits/stl_pair.h:102:21: error: no template named 'pair'
    operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                    ^
/Users/aarivex/theos/include/bits/stl_pair.h:102:48: error: no template named 'pair'
    operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                                               ^
/Users/aarivex/theos/include/bits/stl_pair.h:109:22: error: no template named 'pair'
    operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                     ^
/Users/aarivex/theos/include/bits/stl_pair.h:109:49: error: no template named 'pair'
    operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                                                ^
/Users/aarivex/theos/include/bits/stl_pair.h:115:21: error: no template named 'pair'
    operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                    ^
/Users/aarivex/theos/include/bits/stl_pair.h:115:48: error: no template named 'pair'
    operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                                               ^
/Users/aarivex/theos/include/bits/stl_pair.h:121:22: error: no template named 'pair'
    operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                     ^
/Users/aarivex/theos/include/bits/stl_pair.h:121:49: error: no template named 'pair'
    operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                                                ^
/Users/aarivex/theos/include/bits/stl_pair.h:127:22: error: no template named 'pair'
    operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [/Users/aarivex/americandadhack/.theos/obj/debug/arm64/Tweak.xm.ca397b12.o] Error 1
make[2]: *** [/Users/aarivex/americandadhack/.theos/obj/debug/arm64/AmericanDadHack.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [AmericanDadHack.all.tweak.variables] Error 2

 

Guest
This topic is now closed to further replies.
  • Our picks

    • Dream Cats: kitty idle rpg v1.4.5 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Dream Cats: kitty idle rpg By AlohaFactory
      Bundle ID: com.superjoy.dreamCats
      iTunes Store Link: https://apps.apple.com/us/app/dream-cats-kitty-idle-rpg/id6499309702?uo=4


      🤩 Hack Features

      - Currency

      - Resources

      - Active Pass [ Starter & Monster & Stage & Event & Cats ]

      - VIP Active + LvL

      - ADS NO [ Rewards Free ]

      - Buff Active Auto

      - Quest Guide [ Earn One Point ] Complete All

      - HP [ Linked With Items Just Earn & Equip ]

      - ATK [ Linked With Items Just Earn & Equip ]
        • Like
      • 0 replies
    • Dream Cats: kitty idle rpg v1.4.5 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Dream Cats: kitty idle rpg By AlohaFactory
      Bundle ID: com.superjoy.dreamCats
      iTunes Store Link: https://apps.apple.com/us/app/dream-cats-kitty-idle-rpg/id6499309702?uo=4
       

      🤩 Hack Features

      - Currency

      - Resources

      - Active Pass [ Starter & Monster & Stage & Event & Cats ]

      - VIP Active + LvL

      - ADS NO [ Rewards Free ]

      - Buff Active Auto

      - Quest Guide [ Earn One Point ] Complete All

      - HP [ Linked With Items Just Earn & Equip ]

      - ATK [ Linked With Items Just Earn & Equip ]
        • Like
      • 2 replies
    • Summoners War Cheats v8.6.6 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 6,836 replies
    • Mob Control v2.84.3 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 149 replies
    • Mob Control v2.84.3 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 87 replies
    • Slots Era - Slot Machines 777 v2.51.0 +100++ Jailed Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      Jailbreak required hack(s): https://iosgods.com/topic/172023-slots-era-slot-machines-777-v2200-100-cheat-srdebugger/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 153 replies
    • League of Dreamers - My Story v2.0.1 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases -> Allows free in-app purchases.


      Jailbreak required hack(s): [Mod Menu Hack] League of Dreamers - My Story v1.54 +3 Cheats [ Unlimited Currencies ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 151 replies
    • League of Dreamers - My Story v2.0.1 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 72 replies
    • Slots Era - Slot Machines 777 v2.51.0 +100++ Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 264 replies
    • Ultimate Golf! v4.19.06 +1 Jailed Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222
       

      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      Jailbreak required hack(s): [Mod Menu Hack] Ultimate Golf! v4.4.3 +1 Cheat [ Perfect Shot ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 168 replies
    • Ultimate Golf! v4.19.06 +1 Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222


      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 277 replies
    • House Flipper Home Design v1.500 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: House Flipper Home Design By PLAYWAY SPOLKA AKCYJNA
      Bundle ID: com.imaginalis.HouseFlipperMobile
      iTunes Store Link: https://apps.apple.com/us/app/house-flipper-home-design/id1517373437
       

      Hack Features:
      - Unlimited Cash -> Exchange Flipcoins for Cash to earn an unlimited amount.
      - Unlimited Flipcoins -> Exchange Flipcoins for Cash to earn an unlimited amount.


      Jailbreak required hack(s): https://iosgods.com/topic/169137-exclusive-house-flipper-home-design-all-versions-2-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 122 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