Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnVehicleCreated() out of date, causing crashes when used. #108

Open
zh0ul opened this issue Oct 24, 2016 · 0 comments
Open

OnVehicleCreated() out of date, causing crashes when used. #108

zh0ul opened this issue Oct 24, 2016 · 0 comments

Comments

@zh0ul
Copy link

zh0ul commented Oct 24, 2016

-- The short of it is that the below HookFunction call is outdated and causes crashes when used.
-- Disabling this and the rest of the OnVehicleCreated code resulted in a buildable/usable GTALua.asi

-- From OnVehicleCreated.cpp
// =================================================================================
// Install
// =================================================================================
void GameEvents::Install::OnVehicleCreated()
{
OnVehicleCreated
Memory::HookFunction(GameMemory::Find((PBYTE)"\x48\x8B\xC4\x48\x89\x58\x08\x48\x89\x70\x18\x48\x89\x78\x20\x55\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8D\x68\xB9", "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"), &World__CreateVehicle, (void**)&pWorld_CreateVehicle);
}

The following URL has what appears to be updated FindPatterns:

https://gitlab.com/TinyMP/ScriptHookVDotNet/blob/9e5c36997ffbb082eb6e1295fffd0c5f4538e51a/source/core/NativeMemory.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant