Hi !
I'am trying to call functions adresses with .dll ( C++ ) injected into GTA5.exe

In my code I try to call "SET_ENTITY_HEALTH"

My code ( not all ):
Code:
modulebase = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
// Credit for Alexandre ( natives.h )
// static void SET_ENTITY_HEALTH(Any p0, Any p1) { invoke<Void>(0x6B76DC1F3AE6E6A3, p0, p1); } // 6B76DC1F3AE6E6A3 FBCD1831
(modulebase + 0x6B76DC1F3AE6E6A3) // SET_ENTITY_HEALTH         #TEST1
(modulebase + 0xFBCD1831) // SET_ENTITY_HEALTH                      #TEST2
I have try two adresses, but when I inject the .dll my game crash :/