Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local player = mainmemory.read_u32_be(0x7FBB4C);
- if player >= 0x80000000 and player < 0x80800000 then
- player = player - 0x80000000;
- local xPos = mainmemory.readfloat(player + 0x7C, true);
- local yPos = mainmemory.readfloat(player + 0x80, true);
- local zPos = mainmemory.readfloat(player + 0x84, true);
- gui.text(2, 70, "Player X: "..xPos);
- gui.text(2, 86, "Player Y: "..yPos);
- gui.text(2, 100, "Player Z: "..zPos);
- else
- gui.text(2, 70, "Player not found");
- end
- local camera = mainmemory.read_u32_be(0x7FB968);
- if camera >= 0x80000000 and camera < 0x80800000 then
- camera = camera - 0x80000000;
- local xPos = mainmemory.readfloat(camera + 0x1FC, true);
- local yPos = mainmemory.readfloat(camera + 0x200, true);
- local zPos = mainmemory.readfloat(camera + 0x204, true);
- gui.text(2, 132, "Camera X: "..xPos);
- gui.text(2, 148, "Camera Y: "..yPos);
- gui.text(2, 164, "Camera Z: "..zPos);
- else
- gui.text(2, 132, "Camera not found");
- end
- emu.yield();
- end
Advertisement
Add Comment
Please, Sign In to add comment