D red 1 Posted February 23, 2021 Share Posted February 23, 2021 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) 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 🙂 1 Quote Link to comment Share on other sites More sharing options...
D red 1 Posted February 27, 2021 Author Share Posted February 27, 2021 @Admin maybe u know ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.