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

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

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

    1. Red Dead Redemption 2

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

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    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. DYOM
      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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Alexander Blade

[V] Script/Native Documentation and Research

Recommended Posts

gamerzworld

Ahh non-english folder names!!!!

 

 

Edited by gamerzworld
  • Like 3

Share this post


Link to post
Share on other sites
splintter

STATS::PLAYSTATS_CLOTH_CHANGE

Hash: 0x3AFF9E58

void PLAYSTATS_CLOTH_CHANGE(Any p0, Any p1, Any p2, Any p3, Any p4) // 0x3AFF9E58

 

Anyone know what are the parameters?

Edited by splintter

Share this post


Link to post
Share on other sites
Bucho

STATS::PLAYSTATS_CLOTH_CHANGE

Hash: 0x3AFF9E58

void PLAYSTATS_CLOTH_CHANGE(Any p0, Any p1, Any p2, Any p3, Any p4) // 0x3AFF9E58

 

Anyone know what are the parameters?

You will look assembly and decompile script.rpf! Gta v Useing crypt lib and decrypt lib(win32) when GTA open the rpf. Soo USE DEBUGGER!!! x64dbg

Share this post


Link to post
Share on other sites
Alexander Blade

Are you from Fukushima ?

 

STATS::PLAYSTATS_CLOTH_CHANGE
Hash: 0x3AFF9E58
void PLAYSTATS_CLOTH_CHANGE(Any p0, Any p1, Any p2, Any p3, Any p4) // 0x3AFF9E58

Anyone know what are the parameters?


You will look assembly and decompile script.rpf! Gta v Useing crypt lib and decrypt lib(win32) when GTA open the rpf. Soo USE DEBUGGER!!! x64dbg

 

  • Like 3

Share this post


Link to post
Share on other sites
Bucho

 

Are you from Fukushima ?

 

STATS::PLAYSTATS_CLOTH_CHANGE

Hash: 0x3AFF9E58

void PLAYSTATS_CLOTH_CHANGE(Any p0, Any p1, Any p2, Any p3, Any p4) // 0x3AFF9E58

 

Anyone know what are the parameters?

You will look assembly and decompile script.rpf! Gta v Useing crypt lib and decrypt lib(win32) when GTA open the rpf. Soo USE DEBUGGER!!! x64dbg

 

 

Difference you. I live in the kagawa of japan!!

 

NOT Just like that... :cry:

Fukashima.jpg

Share this post


Link to post
Share on other sites
Hergonan

x64dbg

 

How's x64dbg? Is it like ollydbg or IDA or much different? I'll check it out when I have time :)

 

Also, how did you find out for example how to decrypt the rpf? Most of us don't know these and others are very secretive sometimes.

Share this post


Link to post
Share on other sites
Bucho

 

x64dbg

 

How's x64dbg? Is it like ollydbg or IDA or much different? I'll check it out when I have time :)

 

Also, how did you find out for example how to decrypt the rpf? Most of us don't know these and others are very secretive sometimes.

 

I going to try to find out decrypt and crypt key!!!

GTA is decrypt other file when load the game in virtual memory.

That's why found out (eaxmple:weapons.meta handling.dat value(float) when search Memory. Edited by Bucho

Share this post


Link to post
Share on other sites
Hergonan

Great :D Also it would be helpful to know how to do it ourselves as well :) I'm guessing you can try to find out which part of the code actually reads the .rpf ( maybe by placing a breakpoint on file open function? ) and see what happens afterwards in the assembly?

Share this post


Link to post
Share on other sites
Bucho

but very very very soo very f*cking sleeply!!!! I going to go bed 48hour lol

Share this post


Link to post
Share on other sites
Hergonan

Go to sleep :p

Share this post


Link to post
Share on other sites
Lordmau5

Is there a way to hook into specific events?

 

For example, once a player enters a vehicle or changes the radio station?

 

I could really get a use of those :/

Share this post


Link to post
Share on other sites
kallas

If you want events, you got to implement that yourself. By now, we are using each-frame to check if something is happening.

 

You can use: PED::IS_PED_GETTING_INTO_A_VEHICLE to check if a Player is getting into a vehicle

 

 

About the changing radio station, no Idea...

Share this post


Link to post
Share on other sites
Lordmau5

Hmm alright, thanks @kallas.

 

Other question then:

 

static void SET_VEH_RADIO_STATION(Any p0, Any *p1) { invoke<Void>(0x1B9C0099CB942AC6, p0, p1); } // 1B9C0099CB942AC6 E391F55F

 

What is the 2nd argument there?

Using Integers doesn't work...

 

Also, is there a method like

static Any GET_VEH_RADIO_STATION(Any p0)
to get the current vehicle radio station selected?

Share this post


Link to post
Share on other sites
sasuke78200

Look at the decompiled scripts,

 

AUDIO::SET_VEH_RADIO_STATION(num3, "OFF");

 

AUDIO::SET_VEH_RADIO_STATION(l_5859, "RADIO_02_POP");

 

AUDIO::SET_VEH_RADIO_STATION(l_5860, "RADIO_09_HIPHOP_OLD");

 

 

 

Or you can use AUDIO::GET_RADIO_STATION_NAME(int id)

Edited by sasuke78200

Share this post


Link to post
Share on other sites
kallas

 

Hmm alright, thanks @kallas.

 

Other question then:

static void SET_VEH_RADIO_STATION(Any p0, Any *p1) { invoke<Void>(0x1B9C0099CB942AC6, p0, p1); } // 1B9C0099CB942AC6 E391F55F

What is the 2nd argument there?

Using Integers doesn't work...

 

Also, is there a method like

static Any GET_VEH_RADIO_STATION(Any p0)
to get the current vehicle radio station selected?

 

Could do something like this:

 

 

Vehicle veh =  PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 0);AUDIO::SET_VEH_RADIO_STATION(veh, AUDIO::GET_RADIO_STATION_NAME(0));

Share this post


Link to post
Share on other sites
Lordmau5

I should definitely check the decompiled scripts out! :D

Didn't think it would be a String with the radio-station, but alright, thanks guys :)

 

Only thing open now is a way to check which Radio-station is currently selected.

I'm sure it is in the code, but there is nothing in the natives, unfortunately.

 

//EDIT:

It's not working at all, it throws me this error:

26-04-2015_15-48-16.png

 

Error: The argument from type "const char*" is incompatible with the parameter from type "Any *".

 

Edited by Lordmau5

Share this post


Link to post
Share on other sites
sasuke78200

Download this one, http://dev-c.com/nativedb/natives.h

 

 

 

edit : Nope, don't use it, it still use the old hashes for consoles.

 

Change the prototype to take a char* instead of Any

Edited by sasuke78200

Share this post


Link to post
Share on other sites
sjaak327

or change the definition of the native yourself :) I use a scripting override header file where I put all the natives in that I have changed.

Share this post


Link to post
Share on other sites
sasuke78200

We should centralize researches by using Alexander Blade's website, so no need to override the header :p

  • Like 1

Share this post


Link to post
Share on other sites
Lordmau5

Oh also, is it possible to write to the asiloader.log or would I have to write my own methods to write to a custom log file? :p

Edited by Lordmau5

Share this post


Link to post
Share on other sites
kamaitachi

im trying to spawn clones of my playermodel to protect me, so far I have the CLONE_PED native working, however I don't know what to put beneath it to add them to my group.

PED::CLONE_PED(PLAYER::PLAYER_PED_ID(), -852.4f, 160.0f, 65.6f);
is working and spawns clones wherever I am in the world. (I gave it Michael's house coordinates just in case but it ignores them anyway)

also, for some reason, it spawns 5 or so clones instead of just 1, any fix for that? (this isn't important)

Share this post


Link to post
Share on other sites
sasuke78200

Does anyone know what encryption system R* use to cypher .ysc ? From what I'm reading it AES but GoodNTS told me they don't use it.

Share this post


Link to post
Share on other sites
Lordmau5

So apparently

UI::IS_PAUSE_MENU_ACTIVE()

either always returns false or it's completely broken.

 

 

This code doesn't work at all.

It should pause the currently playing song once the pause menu is opened, and unpause it again once it's closed.

isActive is the boolean I use to check if the script / song is actually being played / mod-functionality being active:

void updatePauseMenu() {  if (UI::IS_PAUSE_MENU_ACTIVE()) {    if (isActive && !currentSong->getIsPaused())      currentSong->setIsPaused(true);  }  else {    if (isActive && currentSong->getIsPaused())      currentSong->setIsPaused(false);  }}
Edited by Lordmau5

Share this post


Link to post
Share on other sites
Alexander Blade

I would really like you to make your changes in the nativedb (when it will be adopted for PC) instead of separate header

or change the definition of the native yourself :) I use a scripting override header file where I put all the natives in that I have changed.

  • Like 1

Share this post


Link to post
Share on other sites
kallas

 

UI::IS_PAUSE_MENU_ACTIVE()

I think that one is related to pause menu in mission.

You should do something like this:

 

if (UI::GET_PAUSE_MENU_STATE() == 1 && UI::IS_PAUSE_MENU_ACTIVE() == 1 && PLAYER::IS_SYSTEM_UI_BEING_DISPLAYED() == 1) { }

Or try with different combinations of them.

Share this post


Link to post
Share on other sites
Lordmau5

Alright, I'll check that out tomorrow, thanks @kallas :)

There is no real documentation on those yet, so ye... Kinda hard to figure out what works properly :p

 

Also, it's really annoying having to restart GTA V everytime I change some code in my .asi file.

Isn't there a way to let them reload mid-game?

Edited by Lordmau5

Share this post


Link to post
Share on other sites
hashtag

Anyone know parameters for this? I reckon it wants a group but nothing I've tried has worked so far.

PLAYER::SET_PLAYER_TEAM(Any p0, Any p1)

Share this post


Link to post
Share on other sites
kallas

 

PLAYER::SET_PLAYER_TEAM(Player PlayerID, UINT32 teamId)

 

Function is used with multiplayer tho.

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.

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.