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

Indicators and reverse lights


G-Modifications
 Share

Recommended Posts

G-Modifications

Hello

 

I want to make indicators and reverse lights for cars in GTA SA. I've tried it, but it crashes or doesn't do anything. I don't want to use flairs or something like that. That's to unrealistic.

 

Does anyone knows how to do this?

 

G-Modifications

Link to comment
Share on other sites

Our most beloved MK came up with this script to make reverse lights. I don't know if it works, I haven't tested it.

 

There are some errors btw (I think he stole something and edited it a bit):

 

{$CLEO .cs}//-------------MAIN---------------thread 'REVLIGT' 0662: NOP "VEHCILES REVERSING LIGHTS" 0662: NOP "VERSION : 1.0" 0662: NOP "AUTHOR : MICHAEL.KNIGHT1" 0662: NOP "VISIT : WWW.GTAUNITEDGANG.UCOZ.COM" 0AB4: [email protected] = var 200 0AB4: [email protected] = var 230 0AB4: [email protected] = var 210 0AB4: [email protected] = var 240 0AB4: [email protected] = var 210 0AB4: [email protected] = var 255 0AB4: [email protected] = var 155 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "RADIUS" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS1" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS2" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS3" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS4" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS5" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS6" //IF and SET 0662: NOP "MEMORY FOR ORIGINAL GTA SAN ANDREAS VERSION" 0A8C: write_memory 7282825 size 1 value 88 virtual_protect 1 0A8C: write_memory 7282826 size 4 value 37008 virtual_protect 1 //0AA9:   is_game_version_original <-- Don't know what he wanted with this:REVLIGT_634wait 0 if and // he forgot and (as usual)  Player.Defined(0)  Player.Controllable($PLAYER_CHAR)else_jump @REVLIGT_1493 Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])if 0AE2: [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 0 pass_wrecked 1 //IF and SET else_jump @REVLIGT_1493 :REVLIGT_704if   Car.Defined([email protected])else_jump @REVLIGT_1446 0AB8: get_vehicle [email protected] current_gear_to [email protected] if  [email protected] == 0 else_jump @REVLIGT_1446 0A97: [email protected] = car [email protected] struct 0085: [email protected] = [email protected] // (int) 0A8E: [email protected] = [email protected] + 1424 // int [email protected] += 34 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 if   not [email protected] == 0 else_jump @REVLIGT_836 0AA6: call_method [email protected] [email protected] num_params -53671 pop 88792346  jump @REVLIGT_1446 :REVLIGT_8360AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0A8D: [email protected] = read_memory [email protected] size 2 virtual_protect 0 [email protected] *= 4 [email protected] += 11120840 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= 0.05 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 92 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 12 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] [email protected] *= -1.0 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset :REVLIGT_1446if or03C9:   car [email protected] damaged   Car.Wrecked([email protected])01F3:   car [email protected] in_air 8AE2:   not [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 1 pass_wrecked 1 //IF and SET else_jump @REVLIGT_704 :REVLIGT_1493jump @REVLIGT_634 

 

 

EDIT (ini):

 

[MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 

 

Edited by Bad.boy!
Link to comment
Share on other sites

G-Modifications

Thank you, but I was thinking to add components or something and then handle them by script, but I don't know how to do that. That looks beter than flares. cool.gif

 

G-Modifications

Link to comment
Share on other sites

@Bad.boy! this code was made by izerli from liberticity (the worst place in america)

Link to comment
Share on other sites

G-Modifications

Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script. How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects.

 

G-Modifcations

Link to comment
Share on other sites

Michael_Knight1
Our most beloved MK came up with this script to make reverse lights. I don't know if it works, I haven't tested it.

 

There are some errors btw (I think he stole something and edited it a bit):

 

{$CLEO .cs}//-------------MAIN---------------thread 'REVLIGT' 0662: NOP "VEHCILES REVERSING LIGHTS" 0662: NOP "VERSION : 1.0" 0662: NOP "AUTHOR : MICHAEL.KNIGHT1" 0662: NOP "VISIT : WWW.GTAUNITEDGANG.UCOZ.COM" 0AB4: [email protected] = var 200 0AB4: [email protected] = var 230 0AB4: [email protected] = var 210 0AB4: [email protected] = var 240 0AB4: [email protected] = var 210 0AB4: [email protected] = var 255 0AB4: [email protected] = var 155 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "RADIUS" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS1" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS2" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS3" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS4" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS5" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS6" //IF and SET 0662: NOP "MEMORY FOR ORIGINAL GTA SAN ANDREAS VERSION" 0A8C: write_memory 7282825 size 1 value 88 virtual_protect 1 0A8C: write_memory 7282826 size 4 value 37008 virtual_protect 1 //0AA9:   is_game_version_original <-- Don't know what he wanted with this:REVLIGT_634wait 0 if and // he forgot and (as usual)  Player.Defined(0)  Player.Controllable($PLAYER_CHAR)else_jump @REVLIGT_1493 Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])if 0AE2: [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 0 pass_wrecked 1 //IF and SET else_jump @REVLIGT_1493 :REVLIGT_704if   Car.Defined([email protected])else_jump @REVLIGT_1446 0AB8: get_vehicle [email protected] current_gear_to [email protected] if  [email protected] == 0 else_jump @REVLIGT_1446 0A97: [email protected] = car [email protected] struct 0085: [email protected] = [email protected] // (int) 0A8E: [email protected] = [email protected] + 1424 // int [email protected] += 34 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 if   not [email protected] == 0 else_jump @REVLIGT_836 0AA6: call_method [email protected] [email protected] num_params -53671 pop 88792346  jump @REVLIGT_1446 :REVLIGT_8360AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0A8D: [email protected] = read_memory [email protected] size 2 virtual_protect 0 [email protected] *= 4 [email protected] += 11120840 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= 0.05 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 92 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 12 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] [email protected] *= -1.0 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset :REVLIGT_1446if or03C9:   car [email protected] damaged   Car.Wrecked([email protected])01F3:   car [email protected] in_air 8AE2:   not [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 1 pass_wrecked 1 //IF and SET else_jump @REVLIGT_704 :REVLIGT_1493jump @REVLIGT_634 

 

 

EDIT (ini):

 

[MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 

 

Why You Post The cs File ?? Download From Here :

http://www.mediafire.com/?zlgg1j5y9ygx36t

 

Link to comment
Share on other sites

fastman92

 

[MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 

 

.ini is very simple file, not a programming language where calculations are allowed.

Only static values and assignments are allowed.

 

*=, += are not allowed.

Only =

Link to comment
Share on other sites

@MK we are never going to get rid of you, are we? You are posting a link to a mod which you stole and claim to be the author, and the mod contains a crack which isn't allowed either.

 

@fastman I didn't make that.

Link to comment
Share on other sites

 

Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script.

have you ever written a script?

 

 

How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects.

not cutscene but replace unused objects of multiobj.ide like craigpackage, arrow and such

Link to comment
Share on other sites

G-Modifications

 

Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script.

have you ever written a script?

 

 

How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects.

not cutscene but replace unused objects of multiobj.ide like craigpackage, arrow and such

Thank you, I will try that multiobj.ide stuf. I'll post some pics of it when it's done.

 

I've written some scripts, but now you said it I think I know what I have to do.

 

EDIT:

 

It still keeps crashing, I don't get it work.

 

G-Modifications

Edited by G-Modifications
Link to comment
Share on other sites

SA already has a way to enable/disable lights. It's based on materials' settings (color&diffuse). This system were released in my mod, IMVehLM (breaklights, turnlights, reversinglights and foglights.)

Link to comment
Share on other sites

G-Modifications

Where can i download this mod? I've seen a video, looks really nice. This it exacly what I wanted.

 

G-Modifications

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.