Skip to content
Guest Big Announcement

Some Theos/MSHooking type questions

Featured Replies

I am new to doing more than offset patches within the mobile cheating universe. I was wondering if some one or multiple people would be willing to help me out with understanding how MSHooking and other stuff like that works. I've been reading threads upon threads to try an get an understanding and while I am getting there slowly I still do not fully understand it all.

Some simple and or detailed examples, docs or whatever will help a ton!

MSHook basically replacing a function with your own function.

lets say there is an offset called DefaultFOV(float value) and it's offset is 0x10123456

Using MSHOOK (jb only)

We wanna start with replacing the function with our own.

bool changefov;

old_DefaultFOV(float);
DefaultFOV(float value) {
if (changefov) { 
 value = 120
}
 return old_DefaultFOV(float)
}

If changefov is true, then return the value to 120
else return the old value from old_DefaultFOV.

Then you need to hook the function via
MSHookFunction(0x10123456, DefaultFOV, old_DefaultFOV)
(DefaultFOV is the function youll be changing and old_DefaultFOV is the old function)

You can call MSHookFunction when you load your menu or something. Hopefully this can clear some foggy understanding.

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.