Jump to content

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


Guest

1,131 posts in this topic

Recommended Posts

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Secret Land Adventure v190 +2 Jailed Cheats [ God & O-HK ]
      Modded/Hacked App: Secret Land Adventure By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.newworld
      iTunes Store Link: https://apps.apple.com/us/app/secret-land-adventure/id6449733445?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Secret Land Adventure v188 +5 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/
        • Agree
        • Winner
        • Like
      • 14 replies
    • Secret Land Adventure v190 +2 Cheats [ God & O-HK ]
      Modded/Hacked App: Secret Land Adventure By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.newworld
      iTunes Store Link: https://apps.apple.com/us/app/secret-land-adventure/id6449733445?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Secret Land Adventure v188 +5 Jailed Cheats [ God & O-HK ] - 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
        • Like
      • 36 replies
    • Blushed - Romance Choices v1.1.8 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Blushed - Romance Choices By SONIDORICO APPS LIMITED
      Bundle ID: com.sonidorico.blushed
      iTunes Store Link: https://apps.apple.com/us/app/blushed-romance-choices/id6466787923?uo=4


      Hack Features:
      - Unlimited Hearts -> Earn some.
      - Unlimited Keys -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Blushed - Romance Choices v1.1.4 +2 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
      • 14 replies
    • Blushed - Romance Choices v1.1.8 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Blushed - Romance Choices By SONIDORICO APPS LIMITED
      Bundle ID: com.sonidorico.blushed
      iTunes Store Link: https://apps.apple.com/us/app/blushed-romance-choices/id6466787923?uo=4


      Hack Features:
      - Unlimited Hearts -> Earn some.
      - Unlimited Keys -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Blushed - Romance Choices v1.1.4 +2 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/
        • Haha
        • Thanks
        • Like
      • 13 replies
    • Shadow War: Idle RPG Survival v1.0.24 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Shadow War: Idle RPG Survival By Pitado Viet Nam JSC
      Bundle ID: com.shadow.war.legend.slime.idle.rpg.survival.game
      iTunes Store Link: https://apps.apple.com/us/app/shadow-war-idle-rpg-survival/id6475706072?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.
      - God Mode


      Jailbreak required hack(s): [Mod Menu Hack] Shadow War: Idle RPG Survival v1.0.11 +2 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
      • 26 replies
    • Shadow War: Idle RPG Survival v1.0.24 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Shadow War: Idle RPG Survival By Pitado Viet Nam JSC
      Bundle ID: com.shadow.war.legend.slime.idle.rpg.survival.game
      iTunes Store Link: https://apps.apple.com/us/app/shadow-war-idle-rpg-survival/id6475706072?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.
      - God Mode


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Shadow War: Idle RPG Survival v1.0.11 +2 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
      • 43 replies
    • Triplet Heroes: Raising Game v1.6.2 +2 Jailed Cheats [ GodMode / O-HK ]
      Modded/Hacked App: Triplet Heroes: Raising Game By Ninetap Inc.
      Bundle ID: com.fgb.tripletheroes
      iTunes Store Link: https://apps.apple.com/us/app/triplet-heroes-raising-game/id6461686938?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Tripleet Heroes: Raising Game v1.4.3 +2 Cheats [ GodMode / 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/
        • Agree
        • Haha
        • Winner
        • Like
      • 11 replies
    • Triplet Heroes: Raising Game v1.6.2 +2 Cheats [ GodMode / O-HK ]
      Modded/Hacked App: Triplet Heroes: Raising Game By Ninetap Inc.
      Bundle ID: com.fgb.tripletheroes
      iTunes Store Link: https://apps.apple.com/us/app/triplet-heroes-raising-game/id6461686938?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill -> Linked to enemies. Use with God Mode.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Tripleet Heroes: Raising Game v1.4.3 +2 Jailed Cheats [ GodMode / O-HK ] - 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 23 replies
    • Cookie Clickers v1.63.0 +7 Jailed Cheats [ MEGA HACK ]
      Modded/Hacked App: Cookie Clickers By Tiny Games srl
      Bundle ID: it.junglestudios.cookieclicker
      iTunes Store Link: https://apps.apple.com/us/app/cookie-clickers/id703439482?uo=4


      Hack Features:
      - Cookie Multiplier
      - Unlimited Golden Cookies
      - Unlimited Skip Ad Tokens
      - Unlimited Time Warps
      - Unlimited Chest Keys
      - Free Card Upgrades
      - Free CPS Item Upgrades


      Jailbreak required hack(s): [Mod Menu Hack] Cookie Clickers v1.61.1 +7 Cheats [ MEGA HACK ] - 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
        • Winner
        • Like
      • 26 replies
    • Cookie Clickers v1.63.0 +7 Cheats [ MEGA HACK ]
      Modded/Hacked App: Cookie Clickers By Tiny Games srl
      Bundle ID: it.junglestudios.cookieclicker
      iTunes Store Link: https://apps.apple.com/us/app/cookie-clickers/id703439482?uo=4


      Hack Features:
      - Cookie Multiplier
      - Unlimited Golden Cookies
      - Unlimited Skip Ad Tokens
      - Unlimited Time Warps
      - Unlimited Chest Keys
      - Free Card Upgrades
      - Free CPS Item Upgrades


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Cookie Clickers v1.61.1 +7 Jailed Cheats [ MEGA HACK ] - 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/
        • Agree
        • Haha
        • Thanks
        • Like
      • 20 replies
    • Garden Affairs: Design & Match v2.5502 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Garden Affairs: Design & Match By JUDIAN TECHNOLOGY INTERNATIONAL PTE. LTD.
      Bundle ID: com.huayuan.xiaochu
      iTunes Store Link: https://apps.apple.com/us/app/garden-affairs-design-match/id1514355595?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stars


      Jailbreak required hack(s): [Mod Menu Hack] Garden Affairs: Design & Match v2.4601 +2 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
        • Haha
        • Thanks
        • Like
      • 30 replies
    • Modern Community v1.3002.98993 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - 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
        • Agree
        • Thanks
        • Winner
        • Like
      • 33 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