About My Position

x0rz

Member
Joined
Aug 30, 2018
Messages
15
Reaction score
0
Hi, how can I capture my position with C ++. I want to find the X, Y, Z coordinates.
 

user88

Well-known member
Joined
Jun 29, 2017
Messages
426
Reaction score
165
Location
LINK CLEO DICE HACK HERE!
Code:
Dword Cped = *(dword)* 0xb6f5f0;
Dword Matrix = *(dword*) cped+0x14;
Float posX = *(float*)matrix + 0x30;

Y = matrix + 0x34
Z = matrix + 0x38
b1g pseudo
 

x0rz

Member
Joined
Aug 30, 2018
Messages
15
Reaction score
0
user88 said:
Code:
Dword Cped = *(dword)* 0xb6f5f0;
Dword Matrix = *(dword*) cped+0x14;
Float posX = *(float*)matrix + 0x30;

Y = matrix + 0x34
Z = matrix + 0x38
b1g pseudo

Can you give me a brief description of how to use it ?
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
x0rz said:
user88 said:
Code:
Dword Cped = *(dword)* 0xb6f5f0;
Dword Matrix = *(dword*) cped+0x14;
Float posX = *(float*)matrix + 0x30;

Y = matrix + 0x34
Z = matrix + 0x38
b1g pseudo

Can you give me a brief description of how to use it ?

nigga u ever coded in C++? he already showed you how to use it
 

x0rz

Member
Joined
Aug 30, 2018
Messages
15
Reaction score
0
supahdupahnubah said:
x0rz said:
user88 said:
Code:
Dword Cped = *(dword)* 0xb6f5f0;
Dword Matrix = *(dword*) cped+0x14;
Float posX = *(float*)matrix + 0x30;

Y = matrix + 0x34
Z = matrix + 0x38
b1g pseudo

Can you give me a brief description of how to use it ?

nigga u ever coded in C++? he already showed you how to use it

I was looking for such a use. I figured out how to do it.

Code:
#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
	HWND hWnd = FindWindow(NULL, L"GTA:SA:MP");
	while (hWnd != NULL)
	{
		DWORD pid;
		GetWindowThreadProcessId(hWnd, &pid);
		HANDLE open = OpenProcess(PROCESS_VM_READ, false, pid);

		DWORD cPED;
		ReadProcessMemory(open, (void*)0xB6F5F0, &cPED, sizeof(cPED), NULL);
		
		DWORD matrixPtr = 0;
		ReadProcessMemory(open, (void*)(cPED + 0x14), &matrixPtr, sizeof(matrixPtr), NULL);
		
		float positionX = 0.0f;
		ReadProcessMemory(open, (void*)(matrixPtr + 0x30), &positionX, sizeof(positionX), NULL);

		float positionY = 0.0f;
		ReadProcessMemory(open, (void*)(matrixPtr + 0x34), &positionY, sizeof(positionY), NULL);

		float positionZ = 0.0f;
		ReadProcessMemory(open, (void*)(matrixPtr + 0x38), &positionZ, sizeof(positionZ), NULL);

		std::cout << "X: " << positionX << " Y: " << positionY << " Z: " << positionZ << "\n";

		CloseHandle(open);
		Sleep(250);
	}
	getchar();
    return 0;
}
 
Top