I want to call Framescript_RegisterFunction with a injected dll
here is my code:
Code:m_pfnFramescript_RegisterFunction = (int(_cdecl *)(char *, int(_cdecl *)(void *)))(dwBase + OFFSET_FRAMESCRIPT_REGISTERFUNCTION);After called register function,I tried to call the lua function,but it show me the gloabl function is nil(Not Registered)Code:gHook->m_bHasInitedTimer = true; int regSuccess = gHook->m_pfnFramescript_RegisterFunction("CloseProcess", CustomLua_CloseProcess);
Can someone help me to correct the error?