Skip to content

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

Description

@zh0ul

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions