acrombequit
Silver Üye
- Katılım
- 6 Kas 2024
- Mesajlar
- 72
- Beğeniler
- 6
- İletişim
File "C:\Users\PC\Desktop\offsets\offset.py", line 5import pymem
import pymem.process
def find_offsets(process_name, structures):
pm = pymem.Pymem(process_name) # fivem start
module = pymem.process.module_from_name(pm.process_handle, process_name).lpBaseOfDll
offsets = {}
for struct in structures:
try:
# Yapıyı tarama
address = pm.pattern_scan_module(module, struct.encode())
offsets[struct] = hex(address) # bulunca sakla
except Exception as e:
offsets[struct] = f"Bulunamadı: {e}" # hata mesaj
return offsets # tüm offsetleri döndürür
process_name = "FiveM.exe" # fivem exe ismi
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}")
pm = pymem.Pymem(process_name) # fivem start
^
IndentationError: expected an indented block after function definition on line 4