kiwidog

Just Cause 2 Script Function Hook/Call

Jul 21st, 2012
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // JUST CAUSE 2 FUNCTION SCRIPT HOOK/CALL
  2. // Either use this to call your own, or hook/stop current calls...
  3. // By: kiwidog
  4.  
  5. typedef int (__cdecl* tExecute)(char* command, PBYTE Unknown_00, void* unused);
  6. tExecute oExecute = (tExecute)(0x4E88B0);
  7.  
  8. // Usage:
  9. if (GetAsyncKeyState(VK_F4) & 0x8000)
  10. oExecute("gui.hud.show", (PBYTE)(0xE1FE9C), NULL);
  11. if (GetAsyncKeyState(VK_F5) & 0x8000)
  12. oExecute("gui.hud.hide", (PBYTE)(0xE1FE9C), NULL);
Advertisement
Add Comment
Please, Sign In to add comment