Originally posted by S63
alot of functions used to make your hook work correctly pass scriptinstance struct as a arg on treyarch games this includes vm_notify
So like this:
void newVM_NotifyStub(...) {
__asm("li %r3, 0");
}
void newVM_NotifyHook(unsigned int notifyListOwnerId, int stringValue, VariableValue* top, scriptInstance_t inst = SC

TINSTANCE_SERVER)
{
newVM_NotifyStub(notifyListOwnerId, stringValue, top, inst);
}