SaneEngineer / OpenVHook

Open source script hook loader implementation for Grand Theft Auto V
GNU General Public License v2.0
47 stars 7 forks source link

Unload Scripts #26

Open SpiderBossDEV opened 2 years ago

SpiderBossDEV commented 2 years ago

Hi there, I was wondering if you can fix unload scripts. If you unload scripts like 'Menyoo, TrainerV' it will crash you. Im not sure if it is fixable. But you can try unloading by using memory.

SaneEngineer commented 2 years ago

I just tested with menyoo myself and it works for me. If it continues to crash regularly then I will look into if you attach your OpenVHook.log file. If occurs irregularly, then that is normal. Script Hook V has the same issue. There maybe ways to reduce the likelihood of crashing, however right now the feature is a state where it is good enough.

SpiderBossDEV commented 2 years ago

Hi, so im sure that it crashes when you unload TrainerV but also to fix most .asi menus from crashing but mainly Menyoo you need to add camerapool and after that it should work cus in my experience with pools normally after adding camerapool it never crashes.

auto cameraPoolPattern = pattern("48 8B C8 EB 02 33 C9 48 85 C9 74 26");

back to TrainerV, so when you unload TrainerV your game will instant crash. I'll try to find a fix now tho. 👍