import pymem
import pymem.process
def find_offsets(process_name, structures):
pm = pymem.Pymem(process_name)
module = pymem.process.module_from_name(pm.process_handle, process_name).lpBaseOfDll
offsets = {}
for struct in structures:
try:
# 31cek
address = pm.pattern_scan_module(module, struct.encode())
offsets[struct] = hex(address)
except Exception as e:
offsets[struct] = f"Bulunamadı: {e}"
return offsets
process_name = "FiveM.exe" # 31cek
structures = [
"bIsPlayerAiming",
"PlayerAimingAt",
"HandleBullet",
"BlipList",
"EntityType",
"Armor",
"BoneManager",
"PlayerInfo",
"PlayerNetID",
"WeaponManager",
"FragInsNmGTA",
"ConfigFlags",
"MaxHealth",
"LastVehicle",
"Driver",
"DoorLock",
"Stamina",
"VisibleFlag",
]
offsets = find_offsets(process_name, structures)
for key, value in offsets.items():
print(f"{key}: {value}")
yaptım bu sporu