Post: GTAV memory C++
05-04-2015, 06:46 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); 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 ):
    
modulebase = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
// Credit for Alexandre ( natives.h )
// static void SET_ENTITY_HEALTH(Any p0, Any p1) { invoke<Void>(0x6B76DC1F3A****A3, p0, p1); } // 6B76DC1F3A****A3 FBCD1831
(modulebase + 0x6B76DC1F3A****A3) // SET_ENTITY_HEALTH #TEST1
(modulebase + 0xFBCD1831) // SET_ENTITY_HEALTH #TEST2


I have try two adresses, but when I inject the .dll my game crash :/
(adsbygoogle = window.adsbygoogle || []).push({});
05-04-2015, 10:38 PM #2
joshk326
Little One
are you trying to do like god mode if so use
_SET_ENTITY_INVINCIBLE 0x3B10EC
void(*SET_ENTITY_INVINCIBLE)(int p1, bool p2) = (void(*)(int, bool))&_SET_ENTITY_INVINCIBLE;

something like that
05-04-2015, 10:41 PM #3
Tustin
Balls of Steel
Originally posted by M4lboro View Post
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 ):
    
modulebase = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
// Credit for Alexandre ( natives.h )
// static void SET_ENTITY_HEALTH(Any p0, Any p1) { invoke<Void>(0x6B76DC1F3A****A3, p0, p1); } // 6B76DC1F3A****A3 FBCD1831
(modulebase + 0x6B76DC1F3A****A3) // SET_ENTITY_HEALTH #TEST1
(modulebase + 0xFBCD1831) // SET_ENTITY_HEALTH #TEST2


I have try two adresses, but when I inject the .dll my game crash :/

You can't do it this way. Those two you tried are the x64 hash and the x86 hashes, respectively. You can't use them as addresses. Better off just using his .asi sdk to make your scripts in there.

The following user thanked Tustin for this useful post:

Sabotage
05-05-2015, 01:13 AM #4
Originally posted by M4lboro View Post
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 ):
    
modulebase = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
// Credit for Alexandre ( natives.h )
// static void SET_ENTITY_HEALTH(Any p0, Any p1) { invoke<Void>(0x6B76DC1F3A****A3, p0, p1); } // 6B76DC1F3A****A3 FBCD1831
(modulebase + 0x6B76DC1F3A****A3) // SET_ENTITY_HEALTH #TEST1
(modulebase + 0xFBCD1831) // SET_ENTITY_HEALTH #TEST2


I have try two adresses, but when I inject the .dll my game crash :/


Trying to do god mode?
05-05-2015, 06:40 AM #5
I'm just trying to call native fonctions, SET_ENTITY_HEALTH is just a test.

#Tustin:
How I can do this ? Without ScriptHook
06-08-2015, 07:30 AM #6
bunbun888
Do a barrel roll!
u must use pointer.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo