Jump to content
If you did not receive an activation email, check the spam inbox - في حال لم تصلك رسالة تفعيل على الايميل تأكد من البريد المزعج او الغير مرغوب ×

MShook crashing (the Offset ?)


D red

Recommended Posts

Hey, 

I have MSHook a class and a function, but after launch the app it crash and when it come to show the menu, it crash 😕

 

PlayerController is the class.

0x8 is the Player health.

private void Update () { } = 0x225FC08

// It’s the one in the "Methods" part (of the class PlayerController)

here is the code :

(thanks Admin) :classic_biggrin:

 

void (*PlayerController_Update)(void *PlayerController); void _PlayerController_Update(void *PlayerController){

if([switches isSwitchOn:@« test »]){

*(int *)((uint64_t)PlayerController + 0x8) = 250;}

PlayerController_Update(PlayerController); }

void setup() {

HOOK(0x225FC08, _PlayerController_Update, PlayerController_Update); [switches addSwitch:@« test » description:@« test »];

Thanks for help 🙂 

  • Like 1
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
Reply to this topic...

×   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.

×
×
  • Create New...