MemoryWrite

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
can you tell me how could you find memory in GTASA with CheatEngine?
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
Using ReadProcessMemory and WriteProcessMemory is an ugly way of writing to memory...
sure it works but it's just not that good...

btw u can easily do what u are trying to do right now with asm like this :


Code:
int Money = 1337;
DWORD* base = (DWORD*)GetModuleBase("game.exe", pID);
DWORD Address = base + 0x00811768
DWORD Address2 = base + 0x28
DWORD Address3 = base + 0x2C
DWORD AddressFinal;
__asm 
{
 MOV EAX, Address
 MOV Address, [EAX]
 MOV EAX, Address2
 MOV Address2, [EAX]
 MOV EAX, Address3
 MOV Address3, [EAX]
 XOR EAX, EAX
 ADD EAX, Address1
 ADD EAX, Address2
 ADD EAX, Address3
 MOV AddressFinal, EAX
 MOV EAX, Money
 MOV EBX, AddressFinal
 MOV [EBX], EAX
}

it's sure big code but very organised and pure, and doesn't need calling apis from other modules
 
Top