kfirprods / SAMP-API

A C# written API to GTA:SA and SA:MP (using memory injection)
MIT License
7 stars 1 forks source link

Memory Adresses #2

Open bugranaimacar opened 3 years ago

bugranaimacar commented 3 years ago

How can we find other memory adresses like playername for 0.3dl ? I saw it in an ahk api. But it was only 0.3.7

keichenblat commented 3 years ago

My first guess would be to compare memory addresses from this library with the ones from the AHK script that was relevant in 0.3.7, then try to apply the diff of addresses to the playername, because sometimes a bunch of those addresses shift together by the same value.

If that didn't work, then you can try using some debugging tools such as WinDbg or Cheat Engine. Personally I haven't done this type of reverse engineering in years, but as I recall it is pretty easy with Cheat Engine when you're dealing with values such as playername. Try a tutorial such as this one: https://wiki.cheatengine.org/index.php?title=Tutorials:Cheat_Engine_Tutorial_Guide_x64

Good luck, and if you manage to find more addresses feel free to create a pull request here so we can merge it into the library :)