Fivem Güncel Offsets (istek)

import 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}")
File "C:\Users\PC\Desktop\offsets\offset.py", line 5
pm = pymem.Pymem(process_name) # fivem start
^
IndentationError: expected an indented block after function definition on line 4
 
File "C:\Users\PC\Desktop\offsets\offset.py", line 5
pm = pymem.Pymem(process_name) # fivem start
^
IndentationError: expected an indented block after function definition on line 4
kanka git chatgpt ye at üşendim


import pymem
import pymem.process

def find_offsets(process_name, structures):
# Bellek işlemini başlat
pm = pymem.Pymem(process_name)
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) # sakla
except Exception as e:
offsets[struct] = f"Bulunamadı: {e}" # bulunamazsa hata mesajı

return offsets # offset döndür

# İşlem adı ve arama yapılacak yapılar
process_name = "FiveM.exe"
structures = [
"bIsPlayerAiming",
"PlayerAimingAt",
"HandleBullet",
"BlipList",
"EntityType",
"Armor",
"BoneManager",
"PlayerInfo",
"PlayerNetID",
"WeaponManager",
"FragInsNmGTA",
"ConfigFlags",
"MaxHealth",
"LastVehicle",
"Driver",
"DoorLock",
"Stamina",
"VisibleFlag",
]

# Offsetleri bul ve yazdır
offsets = find_offsets(process_name, structures)

for key, value in offsets.items():
print(f"{key}: {value}")

VİSUAL STUDİODAN YAP hataları gör knk hala hata alıyorsan git chatgpt at
 
kanka git chatgpt ye at üşendim


import pymem
import pymem.process

def find_offsets(process_name, structures):
# Bellek işlemini başlat
pm = pymem.Pymem(process_name)
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) # sakla
except Exception as e:
offsets[struct] = f"Bulunamadı: {e}" # bulunamazsa hata mesajı

return offsets # offset döndür

# İşlem adı ve arama yapılacak yapılar
process_name = "FiveM.exe"
structures = [
"bIsPlayerAiming",
"PlayerAimingAt",
"HandleBullet",
"BlipList",
"EntityType",
"Armor",
"BoneManager",
"PlayerInfo",
"PlayerNetID",
"WeaponManager",
"FragInsNmGTA",
"ConfigFlags",
"MaxHealth",
"LastVehicle",
"Driver",
"DoorLock",
"Stamina",
"VisibleFlag",
]

# Offsetleri bul ve yazdır
offsets = find_offsets(process_name, structures)

for key, value in offsets.items():
print(f"{key}: {value}")

VİSUAL STUDİODAN YAP hataları gör knk hala hata alıyorsan git chatgpt at
dostum hata alıyor 50 dakika chat gpt uğraştım sen direkt alıp atsana bana
 
ulan ne adamlarsınız be, zamanında pastacınında bi şerefi vardı.
 

  Şuanda konuyu görüntüleyen kullanıcılar


Üst Alt