Jump to content

GTA IV Complete Edition ScriptHookDotNet RelationshipGroup Bug


Recommended Posts

Hey all, after not working on mods for this game for over a decade, I decided to come back and mess around with my old mods. I am now on Complete Edition on Steam and using the latest .Net Scripthook found in this download:

 

GTA 4 2020 Complete Edition ASI Loader + ScriptHook Mod - GTAinside.com

 

I have noticed that the .Net ScriptHook Ped class can no longer get relationship groups. The old code was using a memory offset to read the data from memory directly. My guess is this must have changed. Does anyone know if someone has updated the script hook to fix this or can anyone help me using IDA or OllyDbg to figure it out. I decided to see if I can find some native functions in the exe file using both those debuggers but was not able to find anything in searched.

 

For example, I converted  the name "CREATE_CAR" to a hash using Jenkins One At A Time (JOOAT) and then searched for its hex value but was not finding anything. Bing Copilot did its best to help me. If anyone could help me I would appreciate it, if you can actually teach me how to find offsets for gta classes like CPed, I'd gladly donate to a paypal or patreon for the assistance. I basically would like to be able to find the function that uses a CPed relationship group and find out how it calculate the address for it. My goal would to be to be able to find the offset for relationship groups and then read the value to convert to the .net scripthook RelationshipGroup enum. Thanks!

Edited by Cheyron
more info

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.