Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

[V] Script/Native Documentation and Research


Alexander Blade
 Share

Recommended Posts

I have asi loader , it's done in another way a bit in order to bypass exe encryption , I have script hook (since x360 actually) , it's ported to PC as well . Currently I'm matching natives between x360 and PC since they use different hashing algo (or even use random values instead) for natives in PC :)

 

You sir just made my day :D

Link to comment
Share on other sites

NTAuthority

GTA5.exe+113AD40

this is a RegisterThread Function?

how can we know if you don't even state which of the 4 different executables you're using?

 

anyway, I just have to clean up my code and then I'll release some example bits in the CitizenFX repository (thanks to some anonymous person on GTANet for finding me some hard natives basing on the console executable, though)

Edited by NTAuthority

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

 

GTA5.exe+113AD40

this is a RegisterThread Function?

how can we know if you don't even state which of the 4 different executables you're using?

 

anyway, I just have to clean up my code and then I'll release some example bits in the CitizenFX repository (thanks to some anonymous person on GTANet for finding me some hard natives basing on the console executable, though)

 

Hello...I First GTA of native Research(´・ω・`)

I am trying to Find Native Address from Hash!

I am japanese and My English is not so good. sorry

Link to comment
Share on other sites

Alexander Blade

^

It's all useless with this one-by-one native comparing

Link to comment
Share on other sites

^

It's all useless with this one-by-one native comparing

 

I'm sure you have noticed as well that native registration order is almost the same as on xbox, with only a few additions. Then again my xbox dump is pretty old, so might just be me lacking a few ones.

 

If you want, we can join forces for documenting hashes. That would help everyone I guess.

  • Like 1
Link to comment
Share on other sites

The sooner a working scripthook is released that contains everything needed to call all the game natives, the better.

 

If I can assist in any way, just let me know.

Link to comment
Share on other sites

Same here, I'm a good coder so I would be happy to help if you need some extra hands. Bonus points if you'll make it open source :D

Link to comment
Share on other sites

jedijosh920

Do you guys know when a script hook will be released for beta or something? I really want to get into coding some things for GTA V. I wouldn't care if the script hook freezes or crashes once in a while, I just want to test it out.

Edited by jedijosh920
Link to comment
Share on other sites

unknown modder

The sooner a working scripthook is released that contains everything needed to call all the game natives, the better.

 

If I can assist in any way, just let me know.

we dont know what half the natives on last gen were, pc is even more confusing so we will never get close to using all natives

Link to comment
Share on other sites

 

The sooner a working scripthook is released that contains everything needed to call all the game natives, the better.

 

If I can assist in any way, just let me know.

we dont know what half the natives on last gen were, pc is even more confusing so we will never get close to using all natives

 

But it will be easier to test it, will it not? And eventually find out what it does.

Link to comment
Share on other sites

hey LMS I tried spawn ped but not freeze thread... where wrong

Edited by Bucho
Link to comment
Share on other sites

hey LMS I tried spawn ped but not freeze thread... where wrong

 

You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

 

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

Edited by LMS
Link to comment
Share on other sites

typedef int(__fastcall *Native)(int arg1, int arg2, int arg3);

thanks you...!

I success call function in this code.

  • Like 1
Link to comment
Share on other sites

 

hey LMS I tried spawn ped but not freeze thread... where wrong

You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

 

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

 

So how far along are you in matching them ? Alexander's site is listing a little over 4600 natives in the native DB, how many of those have already been matched ?

Link to comment
Share on other sites

 

 

hey LMS I tried spawn ped but not freeze thread... where wrong

You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

 

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

 

So how far along are you in matching them ? Alexander's site is listing a little over 4600 natives in the native DB, how many of those have already been matched ?

 

They've changed the hashes for natives.

According to @sasuke78200 they are using a new hash function.

Link to comment
Share on other sites

 

 

hey LMS I tried spawn ped but not freeze thread... where wrong

You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

 

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

 

So how far along are you in matching them ? Alexander's site is listing a little over 4600 natives in the native DB, how many of those have already been matched ?

 

 

We've got around a hundred so far.

Link to comment
Share on other sites

jedijosh920

 

hey LMS I tried spawn ped but not freeze thread... where wrong

 

You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

 

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

 

 

Good work, I find myself watching your videos countless times, but the question is when will an example script and the script hook be released to the public? I would like to get into scripting mods for GTA V.

Link to comment
Share on other sites

I have asi loader , it's done in another way a bit in order to bypass exe encryption , I have script hook (since x360 actually) , it's ported to PC as well . Currently I'm matching natives between x360 and PC since they use different hashing algo (or even use random values instead) for natives in PC :)

What did you use to unprotect the .exe to be viewable in whatever disassembler? I have tryed good bit on process dumper tools but it's not showing the exe in them.

Link to comment
Share on other sites

NTAuthority

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

 

I have asi loader , it's done in another way a bit in order to bypass exe encryption , I have script hook (since x360 actually) , it's ported to PC as well . Currently I'm matching natives between x360 and PC since they use different hashing algo (or even use random values instead) for natives in PC :)

What did you use to unprotect the .exe to be viewable in whatever disassembler? I have tryed good bit on process dumper tools but it's not showing the exe in them.

 

*almost* all processes dumpers works for example: CFF explorer

 

Cool, very nice! :)

 

Best wishes,

Paul.

Edited by leftas
Link to comment
Share on other sites

Alexander Blade

Got like all of them here :D

 

 

 

 

hey LMS I tried spawn ped but not freeze thread... where wrong


You have to tell the game your script thread is the current thread as spawning entities requires a thread to be set. The current thread is stored in TLS and can be easily set by using the same method they use to read it. I'd recommend x64 MASM for that as you can simple copy the code then.

@jedijosh920: We got a hook working (see video) and Alex as well as he said, but matching all the natives is the problem atm.

 


So how far along are you in matching them ? Alexander's site is listing a little over 4600 natives in the native DB, how many of those have already been matched ?

 

 

We've got around a hundred so far.

 

  • Like 1
Link to comment
Share on other sites

Luiisjoseda

NICE!!

 

I think can to call function witout crash using permission thread.like a ps3 sprx hook.

That's what I'm aiming to do. Hoping for success :)

  • Like 1
Link to comment
Share on other sites

 

 

NICE!!

 

I think can to call function witout crash using permission thread.like a ps3 sprx hook.

That's what I'm aiming to do. Hoping for success :)We are friend!!'^^
Link to comment
Share on other sites

Luiisjoseda

 

 

NICE!!

 

I think can to call function witout crash using permission thread.like a ps3 sprx hook.

That's what I'm aiming to do. Hoping for success :)
We are friend!!'^^

 

I need to find a program that will allow me to disassemble GTAV so I can get a few Native Addresses, do you know of any?

Link to comment
Share on other sites

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
 Share

  • 3 Users Currently Viewing
    0 members, 0 Anonymous, 3 Guests

×
×
  • Create New...

Important Information

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