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!

A mod to set the default radio station?


muh linucs
 Share

Recommended Posts

muh linucs

Surprisingly, I haven't managed to find such mod. Should have an option to set the radio to "off", I prefer only turning on at will.

Link to comment
Share on other sites

Mysterdogg

Courtesy of @Jack back in 2016:

Fixed*

{$CLEO}
0000: RAD
REPEAT
    wait 250
    UNTIL     0256: player $PLAYER_CHAR defined
     WHILE TRUE
         wait 0
             IF
              00DF:   actor $PLAYER_ACTOR driving
                  THEN
                          0A8D: 0@ = read_memory 0xB7341B size 1 virtual_protect 0
                                  0A8D: 1@ = read_memory 0xB7341C size 1 virtual_protect 0
                                          IF OR
                                                      0@ == 1
                                                                  1@ == 1
                                                                          THEN
                                                                                  2@ = 1
                                                                                          END
                                                                                                          IF
                                                                                                           2@ == 0
                                                                                                                   THEN
                                                                                                                               051E: 0@ = get_current_radio_station
                                                                                                                                           IF
                                                                                                                                            0@ <> 11
                                                                                                                                                        THEN
                                                                                                                                                                    041E: set_radio_station 11
                                                                                                                                                                                2@ = 1
                                                                                                                                                                                            END
                                                                                                                                                                                                    END
                                                                                                                                                                                                        ELSE
                                                                                                                                                                                                            2@ = 0
                                                                                                                                                                                                                END
                                                                                                                                                                                                                END

Alternative layout:

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:NONAME_2
wait 250 
   Player.Defined($PLAYER_CHAR)
else_jump @NONAME_2 

:NONAME_19
wait 0 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_158 
0A8D: 0@ = read_memory 12006427 size 1 virtual_protect 0 
0A8D: 1@ = read_memory 12006428 size 1 virtual_protect 0 
if or
  0@ == 1 
  1@ == 1 
else_jump @NONAME_99 
2@ = 1 

:NONAME_99
if 
  2@ == 0 
else_jump @NONAME_151 
051E: 0@ = get_current_radio_station 
if 
   not 0@ == 11 
else_jump @NONAME_151 
041E: set_radio_station 11 
2@ = 1 

:NONAME_151
jump @NONAME_165 

:NONAME_158
2@ = 0 

:NONAME_165
jump @NONAME_19 

Sanny Builder required.

Edited by Mysterdogg
Link to comment
Share on other sites

muh linucs

@Mysterdogg I installed Sanny Builder and receive "Condition expected." error when compiling. Could you tell how to compile the script?

Link to comment
Share on other sites

Mysterdogg

Check again ;) fixed the source, little typing mistake 😅

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.