GTA San Andreas PlayerPointer, Reserved Functions

Posts 1–8 of 8 · Page 1 of 1
GTA San Andreas PlayerPointer, Reserved Functions
Here, the CPed / PlayerPointer:

Pointer:

Code:
DWORD PlayerPointer = *(DWORD*)(GTA + 0x76F3B8);
Functions:

Teleport:

Code:
float X,Y,Z;

if(GetAsyncKeyState(VK_F9)&1)
{
	X = *(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x30);
	Y = *(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x34);
	Z = *(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x38);
}
if(GetAsyncKeyState(VK_F10)&1)
{
	*(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x30) = X;
	*(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x34) = Y;
	*(float*)(*(DWORD*)(PlayerPointer + 0x14) + 0x38) = Z;
}
Reserved Functions:

Clear Wanted Level:

Code:
void ClearWantedLevel()
{
    typedef void (__cdecl *fClearWantedLevel)();
    fClearWantedLevel kClearWantedLevel = (fClearWantedLevel)(0x438F20);
    kClearWantedLevel();
}
Weapon Set:

Code:
void SetWeaponSet(int WeaponSet)
{
	typedef void (__cdecl *fSetWeapon)();
	fSetWeapon kSetWeapon;
	switch(WeaponSet)
	{
	case 1:
		kSetWeapon = (fSetWeapon)(0x004385B0);
		kSetWeapon();
		break;
	case 2:
		kSetWeapon = (fSetWeapon)(0x00438890);
		kSetWeapon();
		break;
	case 3:
		kSetWeapon = (fSetWeapon)(0x00438B30);
		kSetWeapon();
		break;
	}
}
If you use this, give Credits
Do you have any other addresses from SA-MP Natives?
Quote Originally Posted by Mellnik View Post
Do you have any other addresses from SA-MP Natives?
Sorry no, i only Hack GTA Singeplayer!
Quote Originally Posted by CFHackerExtreme View Post
Sorry no, i only Hack GTA Singeplayer!
Nice job m8, +1! I wanted to start gta-sa hacking too but I gave up because it was annoying because of full-screen mode.Is it possible to change it to Windowed Mode somehow?
Quote Originally Posted by XXkillerFin1 View Post
Nice job m8, +1! I wanted to start gta-sa hacking too but I gave up because it was annoying because of full-screen mode.Is it possible to change it to Windowed Mode somehow?
xD It's simple to minimize the DirectX Window. Press the Window Key :O Then, Start Cheat Engine
Simply tip: PlayerHealth = Float
Quote Originally Posted by CFHackerExtreme View Post
xD It's simple to minimize the DirectX Window. Press the Window Key :O Then, Start Cheat Engine
Simply tip: PlayerHealth = Float
Never thinked that, Thx
Code:
DWORD PlayerPointer = *(DWORD*)(GTA + 0x76F3B8);
Do you mean with "GTA" the normal .exe of GTA SA?
Quote Originally Posted by _PuRe.LucK* View Post
Code:
DWORD PlayerPointer = *(DWORD*)(GTA + 0x76F3B8);
Do you mean with "GTA" the normal .exe of GTA SA?
Yep, the Base Pointer from "gta_sa.exe"
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us