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. Support

    3. Suggestions

Happy Holidays from the GTANet team!

New Stat?


Jonnykatt_no1
 Share

Recommended Posts

Jonnykatt_no1

Is it possible to add a new stat to the stats page in SA?

 

A couple of weeks ago I hacked together my own custom hi-jacking mission. It works great, no problems encountered since people in these forums helped me finalize the code.

 

The only thing that is missing in my opinion is a record of hi-jacking activity. I would love to add a "Vehicles Hi-Jacked" count to the Misc section of stats, and maybe even a "Money from Hi-Jacking" stat in money.

 

Before I waste a lot of time trying to figure out how to do this, I wanted to put these questions out there:

 

Can it be done?

 

Is doing it reasonable?

 

And if anyone has any advice on what lines would need to be added to my code and/or the main code, please do tell!

 

 

Link to comment
Share on other sites

random_download

I'm pretty sure that the names etc. of stats are hardcoded. It may be possible to add one by code injection, but this is pretty advanced and not easy. You won't be able to do it through the scm.

Link to comment
Share on other sites

Jonnykatt_no1
I'm pretty sure that the names etc. of stats are hardcoded. It may be possible to add one by code injection, but this is pretty advanced and not easy. You won't be able to do it through the scm.

So, I guess it's not something that can be reasonably done. confused.gif

 

I was afraid of that. I don't want to mess with any hard coding for something like this.

 

I'm glad that I came here to ask before wasting a lot of my time trying to figure out something that can't be done...

 

Thanks again r_d!

 

 

Link to comment
Share on other sites

Hi,

 

the solution i can give you is to use an already existing stat, there is next to 400 of them so i'm pretty sure you can found one taht is not as usefull as it seems, it depends too if your mod will be using the missions stats, but i think it's the best workaround you'll get.

 

But something else i don't agree with random_download (and by the way i salute him for the time he always spend helping, my hat down to you mate) about the stats name because if i remember well, i understand you right, and i'm not mistaking (sorry for the case of any of those happend...) the names of the stats are in the text files so just to rename them find in the "yourownlanguage".gtx and you'll be next to done just drop down on SA opcode database get the stats maths opcodes.

 

Then you'll get your own highjacking stats....

 

Hope it helped

 

Have fun

Link to comment
Share on other sites

  • 1 month later...

^ Thats excatly the way to do it. I did that with my Pizza Boy mission to record 'number of pizzas delivered'.

 

In your case, you may be better using stat 218 (amount of drugs bought) for your 'number of hijacks' and then stat 61 (drugs budget) for your 'money made from hijacking' - none of those two are used in the game (unless somebody knows differently?) and both will appear on the stats page when you record something in them smile.gif

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

  • 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.