Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Alexander Blade

[V] Script/Native Documentation and Research

Recommended Posts

cowabunga

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

Share this post


Link to post
Share on other sites
Bucho

GTA5.exe+113AD40

this is a RegisterThread Function?

Edited by Bucho

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Bucho

 

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

Share this post


Link to post
Share on other sites
Bucho

he already script hook!

Share this post


Link to post
Share on other sites
Alexander Blade

^

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

Share this post


Link to post
Share on other sites
LMS

^

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.

Share this post


Link to post
Share on other sites
sjaak327

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.

Share this post


Link to post
Share on other sites
Hergonan

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
r34ld34l

 

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.

Share this post


Link to post
Share on other sites
Bucho

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

Edited by Bucho

Share this post


Link to post
Share on other sites
LMS

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

Share this post


Link to post
Share on other sites
Bucho
typedef int(__fastcall *Native)(int arg1, int arg2, int arg3);

thanks you...!

I success call function in this code.

Share this post


Link to post
Share on other sites
sjaak327

 

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 ?

Share this post


Link to post
Share on other sites
Fun 2

 

 

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.

Share this post


Link to post
Share on other sites
MulleDK19

 

 

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
SC58

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.

Share this post


Link to post
Share on other sites
leftas

 

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites
Bucho

NICE!!

 

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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites
Bucho

 

 

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!!'^^

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites
dongus_thongus

Share this post


Link to post
Share on other sites
Luiisjoseda

3i6Jk8m.png

Nice work!! :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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