Search the Community
Showing results for tags 'void hooking'.
-
For hooking void you need to call the void method by modifying another method to call it. This might be confusing for new gg users so i created an script template which allows you to hook void in gg with parameters (basic data types). With inbuild switch off code and ability to choose how many times you want to call the void method. These are the steps to use the template : 1. Download this code which i like to call method patching library , then paste it at the very top of your script 2. Now copy code for voidHook and then paste this anywhere, you can paste this in your script menu or how you would like to make your cheat active 3. Find the offset from dump.cs file or anywhere, and use those offsets to apply patches Below you can see an example of usage of this code : -- RVA: 0x1000 Offset: 0x1000 -- public static void Update() { } -- RVA: 0x2000 Offset: 0x2000 -- public void AddHealth(float health) { } HackersHouse.voidHook({ { ['libName'] = "libil2cpp", ['targetOffset'] = 0x1000, ['destinationOffset'] = 0x2000, ['parameters'] ={ { "float", 999999} }, ['repeat'] = 1, ['libIndex'] = 'auto' } }) HackersHouse.voidHookOff({ { ['libName'] = "libil2cpp", ['targetOffset'] = 0x1000, ['destinationOffset'] = 0x2000, } }) This probably has some bugs you can either report in the comments or you can come to telegram.
- 4 replies
-
3
-
- void hooking
- calling methods
-
(and 1 more)
Tagged with: