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
  Reveal hidden contents
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

    • Wukong's Arsenal:Rogue RPG v1.8.1 [+3 Cheats]
      Modded/Hacked App: Wukong's Arsenal:Rogue RPG By HangZhou Mai Di Wen Network Technology Co., Ltd
      Bundle ID: com.medivhgame.wukongfIght.ios
      App Store Link: https://apps.apple.com/us/app/wukongs-arsenal-rogue-rpg/id6733239805?uo=4

       

      🤩 Hack Features

      - Never Die
      - Unlimited Currency
      - Remove Ads
      • 6 replies
    • Wukong's Arsenal:Rogue RPG v1.8.1 [+3 Jailed Cheats]
      Modded/Hacked App: Wukong's Arsenal:Rogue RPG By HangZhou Mai Di Wen Network Technology Co., Ltd
      Bundle ID: com.medivhgame.wukongfIght.ios
      App Store Link: https://apps.apple.com/us/app/wukongs-arsenal-rogue-rpg/id6733239805?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency
      - Remove Ads
      • 2 replies
    • Townfall: Zombie Tower Defense v20.1.5 [+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)
      • 7 replies
    • Townfall: Zombie Tower Defense v20.1.5 [+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)
      • 8 replies
    • Kingdom Survivors v1.0730 [+4 Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      🚀 Hack Features

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency
      • 18 replies
    • Kingdom Survivors v1.0730 [+4 Jailed Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      Hack Features:

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency

      • 14 replies
    • Bounce Defense v1.2.5 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 5 replies
    • Bounce Defense v1.2.5 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 3 replies
    • Hex Warriors v2.0.5 Cheat Menu [+10 Jailed Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4


       

      🤩 Hack Features

      Cheat Menu (Currency, Auto Win, Cards and more)
      • 4 replies
    • Hex Warriors v2.0.5 Cheat Menu [+10 Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4



      🤩 Hack Features

      - Cheat Menu (Currency, Auto Win, Cards and more)
      • 3 replies
    • Subway Surfers v3.46.0 +22 Jailed Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers v3.40.0 +20 Cheats [ Currencies + More ] - ViP 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
        • Winner
        • Like
      • 40 replies
    • Subway Surfers v3.46.0 +22 Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Subway Surfers v3.40.0 +20 Jailed Cheats [ Currencies + More ] - ViP Non-Jailbroken Hacks & 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/
        • Thanks
        • Like
      • 45 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