Created
October 15, 2022 15:21
-
-
Save 4el0ve4ik/a46ed2be490cf12e8b81f1805280107d to your computer and use it in GitHub Desktop.
gta sa fast jump on bike: https://www.blast.hk/threads/88091/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <memory> | |
class fastJumpOnBike { | |
public: | |
fastJumpOnBike() { | |
unsigned long oldVP = 0; | |
VirtualProtect(addr, 0x12, PAGE_EXECUTE_READWRITE, &oldVP); | |
std::memset(addr, 0x90, 0x12); | |
//\xC7\x44\x24\x18\x00\x00\x80\x40 | |
*reinterpret_cast<unsigned long*>(addr) = 0x182444C7; | |
*reinterpret_cast<unsigned long*>(reinterpret_cast<unsigned long>(addr) + 4) = 0x40800000; | |
VirtualProtect(addr, 0xE, oldVP, NULL); | |
} | |
private: | |
void* addr = reinterpret_cast<void*>(0x6C0420); | |
}_fastJumpOnBike; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment