You are not logged in.
Pages: 1
Hi so I recently grabbed this mod off google and I noticed it doesn't carry manual transmission for quite a few cars. I wanted to know how to add a car to the script. I know how to edit the script but every time I try to do it myself, I just get my game to crash. I will post the script below to see if any of you guys could help me. The car I'm trying to add is CopCarLV and CopCar SF (597 and 598). The mod says it works for cars with ids 399 to 598. Thanks!
NOTE: This is the unedited code I.E the one I downloaded off the website. Thank you.
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread 'MTS'
:MTS_11
wait 0
if and
Player.Defined($PLAYER_CHAR)
$ONMISSION == 0
else_jump @MTS_11
077E: get_active_interior_to $ACTIVE_INTERIOR
if
$ACTIVE_INTERIOR == 0
else_jump @MTS_11
if and
Actor.Driving($PLAYER_ACTOR)
847A: not actor $PLAYER_ACTOR driving_bike
84A7: not actor $PLAYER_ACTOR driving_boat
84A9: not actor $PLAYER_ACTOR driving_heli
not Actor.DrivingPlane($PLAYER_ACTOR)
84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
89AE: not actor $PLAYER_ACTOR driving_train
else_jump @MTS_11
if and
not Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #BIKE)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #MTBIKE)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COMBINE)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #TRACTOR)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #CABBIE)
else_jump @MTS_531
if and
not Actor.DrivingVehicleType($PLAYER_ACTOR, #HOTDOG)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #CLUB)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARLA)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARSF)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARVG)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARRU)
else_jump @MTS_531
if and
not Actor.DrivingVehicleType($PLAYER_ACTOR, #PICADOR)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #SWATVAN)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #ALPHA)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #PHOENIX)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #GLENSHIT)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #SADLSHIT)
else_jump @MTS_531
if and
not Actor.DrivingVehicleType($PLAYER_ACTOR, #TUGSTAIR)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #BOXBURG)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARLA)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARSF)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARVG)
not Actor.DrivingVehicleType($PLAYER_ACTOR, #COPCARRU)
else_jump @MTS_531
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0AB7: get_vehicle 0@ number_of_gears_to 9@
0085: 10@ = 9@ // (int)
10@ += 1
0ABF: set_vehicle 0@ engine_state_to 0
Car.LockInCurrentPosition(0@) = True
if
0AB0: key_pressed 67
else_jump @MTS_478
0ABF: set_vehicle 0@ engine_state_to 1
Car.LockInCurrentPosition(0@) = False
036A: put_actor $PLAYER_ACTOR in_car 0@
7@ = 1
0390: load_txd_dictionary 'MTS_HUD'
038F: load_texture "HUD_KM" as 1 // Load dictionary with 0390 first
038F: load_texture "HUD_GB" as 2 // Load dictionary with 0390 first
03F0: enable_text_draw 1
jump @MTS_685
:MTS_478
if or
Car.Wrecked(0@)
not Actor.InCar($PLAYER_ACTOR, 0@)
else_jump @MTS_509
jump @MTS_11
:MTS_509
if
0AB0: key_pressed 88
else_jump @MTS_11
jump @MTS_531
:MTS_531
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0ABF: set_vehicle 0@ engine_state_to 1
Car.LockInCurrentPosition(0@) = False
036A: put_actor $PLAYER_ACTOR in_car 0@
0390: load_txd_dictionary 'MTS_HUD'
038F: load_texture "HUD_KM" as 1 // Load dictionary with 0390 first
03F0: enable_text_draw 1
jump @MTS_595
:MTS_595
wait 0
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
gosub @MTS_5069
jump @MTS_639
:MTS_639
if or
Car.Wrecked(0@)
not Actor.InCar($PLAYER_ACTOR, 0@)
else_jump @MTS_595
Car.RemoveReferences(0@)
03F0: enable_text_draw 0
wait 0
0391: release_textures
jump @MTS_11
:MTS_685
6@ = Car.Model(0@)
0085: 8@ = 6@ // (int)
if and
6@ > 399
588 > 6@
else_jump @MTS_4800
if
6@ > 417
else_jump @MTS_1359
8@ -= 1
if
6@ > 425
else_jump @MTS_1359
8@ -= 1
if
6@ > 430
else_jump @MTS_1359
8@ -= 1
if
6@ > 448
else_jump @MTS_1359
8@ -= 3
if
6@ > 449
else_jump @MTS_1359
8@ += 1
if
6@ > 454
else_jump @MTS_1359
8@ -= 3
if
6@ > 465
else_jump @MTS_1359
8@ -= 6
if
6@ > 469
else_jump @MTS_1359
8@ -= 2
if
6@ > 473
else_jump @MTS_1359
8@ -= 3
if
6@ > 476
else_jump @MTS_1359
8@ -= 1
if
6@ > 481
else_jump @MTS_1359
8@ -= 1
if
6@ > 484
else_jump @MTS_1359
8@ -= 1
if
6@ > 488
else_jump @MTS_1359
8@ -= 2
if
6@ > 493
else_jump @MTS_1359
8@ -= 1
if
6@ > 497
else_jump @MTS_1359
8@ -= 1
if
6@ > 503
else_jump @MTS_1359
8@ -= 3
if
6@ > 513
else_jump @MTS_1359
8@ -= 5
if
6@ > 523
else_jump @MTS_1359
8@ -= 5
if
6@ > 539
else_jump @MTS_1359
8@ -= 1
if
6@ > 548
else_jump @MTS_1359
8@ -= 1
if
6@ > 553
else_jump @MTS_1359
8@ -= 1
if
6@ > 563
else_jump @MTS_1359
8@ -= 1
if
6@ > 577
else_jump @MTS_1359
8@ -= 1
if
6@ > 581
else_jump @MTS_1359
8@ -= 1
jump @MTS_1359
:MTS_1359
8@ -= 400
8@ *= 224
3@ = 12761564
005A: 3@ += 8@ // (int)
3@ += 124
5@ = 0
jump @MTS_1414
:MTS_1414
wait 0
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
gosub @MTS_4826
jump @MTS_1458
:MTS_1458
if and
00E1: player 0 pressed_key 17
001D: 9@ > 7@ // (int)
else_jump @MTS_1548
7@ += 1
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
097A: play_audio_at 0.0 0.0 0.0 event 1138
wait 300
jump @MTS_1548
:MTS_1548
if and
0AB0: key_pressed 16
7@ > 1
else_jump @MTS_1635
7@ -= 1
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
097A: play_audio_at 0.0 0.0 0.0 event 1139
wait 300
jump @MTS_1635
:MTS_1635
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
0AB0: key_pressed 16
7@ == 1
1 > 1@
else_jump @MTS_1762
7@ -= 1
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
gosub @MTS_4826
097A: play_audio_at 0.0 0.0 0.0 event 1139
wait 300
jump @MTS_2821
:MTS_1762
if or
Car.Wrecked(0@)
not Actor.InCar($PLAYER_ACTOR, 0@)
else_jump @MTS_1898
0ABF: set_vehicle 0@ engine_state_to 0
Car.RemoveReferences(0@)
if
5@ == 1
else_jump @MTS_1874
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
03F0: enable_text_draw 0
wait 0
0391: release_textures
jump @MTS_11
:MTS_1874
5@ = 0
03F0: enable_text_draw 0
wait 0
0391: release_textures
jump @MTS_11
:MTS_1898
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if
9@ == 5
else_jump @MTS_1949
jump @MTS_1999
:MTS_1949
if
9@ == 4
else_jump @MTS_1974
jump @MTS_2365
:MTS_1974
if
9@ == 3
else_jump @MTS_1898
jump @MTS_2639
:MTS_1999
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 1
1@ > 30
else_jump @MTS_2090
2@ = 30
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2090
:MTS_2090
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 2
1@ > 70
else_jump @MTS_2181
2@ = 80
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2181
:MTS_2181
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 3
1@ > 105
else_jump @MTS_2272
2@ = 120
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2272
:MTS_2272
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 4
1@ > 140
else_jump @MTS_3216
2@ = 165
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_3216
:MTS_2365
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 1
1@ > 32
else_jump @MTS_2456
2@ = 32
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2456
:MTS_2456
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 2
1@ > 75
else_jump @MTS_2547
2@ = 85
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2547
:MTS_2547
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 3
1@ > 120
else_jump @MTS_3216
2@ = 140
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_3216
:MTS_2639
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 1
1@ > 35
else_jump @MTS_2730
2@ = 35
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_2730
:MTS_2730
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
7@ == 2
1@ > 80
else_jump @MTS_3216
2@ = 90
0093: 2@ = integer 2@ to_float
2@ /= 3.6
Car.SetSpeedInstantly(0@, 2@)
jump @MTS_3216
:MTS_2821
wait 0
if and
7@ == 0
5@ == 0
else_jump @MTS_2898
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= -1.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 2
jump @MTS_2946
:MTS_2898
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_2821
:MTS_2946
wait 0
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
0095: make 1@ absolute_integer
if and
00E1: player 0 pressed_key 17
1 > 1@
else_jump @MTS_3118
7@ += 1
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
gosub @MTS_4826
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= -1.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
097A: play_audio_at 0.0 0.0 0.0 event 1138
wait 300
jump @MTS_3216
:MTS_3118
wait 0
if or
Car.Wrecked(0@)
not Actor.InCar($PLAYER_ACTOR, 0@)
else_jump @MTS_2946
0ABF: set_vehicle 0@ engine_state_to 0
Car.RemoveReferences(0@)
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= -1.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
03F0: enable_text_draw 0
wait 0
0391: release_textures
jump @MTS_11
:MTS_3216
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if
9@ == 5
else_jump @MTS_3267
jump @MTS_3317
:MTS_3267
if
9@ == 4
else_jump @MTS_3292
jump @MTS_3877
:MTS_3292
if
9@ == 3
else_jump @MTS_3216
jump @MTS_4370
:MTS_3317
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if
5@ == 0
else_jump @MTS_3564
if and
7@ > 1
001D: 10@ > 7@ // (int)
else_jump @MTS_3564
if and
27 > 1@
7@ >= 2
else_jump @MTS_3419
jump @MTS_3516
:MTS_3419
if and
67 > 1@
7@ >= 3
else_jump @MTS_3451
jump @MTS_3516
:MTS_3451
if and
102 > 1@
7@ >= 4
else_jump @MTS_3483
jump @MTS_3516
:MTS_3483
if and
137 > 1@
7@ >= 5
else_jump @MTS_3564
jump @MTS_3516
:MTS_3516
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ /= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 1
jump @MTS_3564
:MTS_3564
if
5@ == 1
else_jump @MTS_1414
if
7@ == 1
else_jump @MTS_3648
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_3648
if and
7@ > 1
001D: 10@ > 7@ // (int)
else_jump @MTS_1414
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
1@ > 27
2 >= 7@
else_jump @MTS_3732
jump @MTS_3829
:MTS_3732
if and
1@ > 67
3 >= 7@
else_jump @MTS_3764
jump @MTS_3829
:MTS_3764
if and
1@ > 102
4 >= 7@
else_jump @MTS_3796
jump @MTS_3829
:MTS_3796
if and
1@ > 137
5 >= 7@
else_jump @MTS_1414
jump @MTS_3829
:MTS_3829
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_3877
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if
5@ == 0
else_jump @MTS_4091
if and
7@ > 1
001D: 10@ > 7@ // (int)
else_jump @MTS_4091
if and
29 > 1@
7@ >= 2
else_jump @MTS_3979
jump @MTS_4043
:MTS_3979
if and
72 > 1@
7@ >= 3
else_jump @MTS_4011
jump @MTS_4043
:MTS_4011
if and
117 > 1@
7@ >= 4
else_jump @MTS_4091
jump @MTS_4043
:MTS_4043
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ /= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 1
jump @MTS_4091
:MTS_4091
if
5@ == 1
else_jump @MTS_1414
if
7@ == 1
else_jump @MTS_4175
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_4175
if and
7@ > 1
6 > 7@
else_jump @MTS_1414
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
1@ > 29
2 >= 7@
else_jump @MTS_4258
jump @MTS_4322
:MTS_4258
if and
1@ > 72
3 >= 7@
else_jump @MTS_4290
jump @MTS_4322
:MTS_4290
if and
1@ > 117
4 >= 7@
else_jump @MTS_1414
jump @MTS_4322
:MTS_4322
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_4370
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if
5@ == 0
else_jump @MTS_4552
if and
7@ > 1
001D: 10@ > 7@ // (int)
else_jump @MTS_4552
if and
32 > 1@
7@ >= 2
else_jump @MTS_4472
jump @MTS_4504
:MTS_4472
if and
77 > 1@
7@ >= 3
else_jump @MTS_4552
jump @MTS_4504
:MTS_4504
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ /= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 1
jump @MTS_4552
:MTS_4552
if
5@ == 1
else_jump @MTS_1414
if
7@ == 1
else_jump @MTS_4636
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_4636
if and
7@ > 1
001D: 10@ > 7@ // (int)
else_jump @MTS_1414
02E3: 1@ = car 0@ speed
1@ *= 3.6
0092: 1@ = float 1@ to_integer
if and
1@ > 32
2 >= 7@
else_jump @MTS_4720
jump @MTS_4752
:MTS_4720
if and
1@ > 77
3 >= 7@
else_jump @MTS_1414
jump @MTS_4752
:MTS_4752
0A8D: 4@ = read_memory 3@ size 4 virtual_protect 0
4@ *= 3.0
0A8C: write_memory 3@ size 4 value 4@ virtual_protect 0
5@ = 0
jump @MTS_1414
:MTS_4800
5@ = 0
03F0: enable_text_draw 0
wait 0
0391: release_textures
jump @MTS_11
end_thread
:MTS_4826
0349: set_text_draw_font 3
033F: set_text_draw_letter_size 0.27 2.5
060D: draw_text_shadow 0 rgba 0 0 0 0
0340: set_text_draw_RGBA 80 240 30 140
045A: draw_text_1number 330.0 240.0 GXT 'NUMBER' number 1@ // ~1~
0349: set_text_draw_font 3
033F: set_text_draw_letter_size 0.27 2.5
060D: draw_text_shadow 0 rgba 0 0 0 0
0340: set_text_draw_RGBA 80 240 30 140
045A: draw_text_1number 280.0 240.0 GXT 'NUMBER' number 7@ // ~1~
0A8D: 11@ = read_memory 11989093 size 1 virtual_protect 0
if
not 11@ == 1
0AA1: return_if_false
03E3: set_texture_to_be_drawn_antialiased 1
074B: draw_texture 1 position 374.0 250.7 scale 35.0 35.0 angle 180.0 color_RGBA 80 240 30 140
03E3: set_texture_to_be_drawn_antialiased 1
074B: draw_texture 2 position 282.2 253.0 scale 11.0 26.0 angle 180.0 color_RGBA 80 240 30 140
return
:MTS_5069
0349: set_text_draw_font 3
033F: set_text_draw_letter_size 0.27 2.5
060D: draw_text_shadow 0 rgba 0 0 0 0
0340: set_text_draw_RGBA 80 240 30 140
045A: draw_text_1number 330.0 240.0 GXT 'NUMBER' number 1@ // ~1~
0A8D: 11@ = read_memory 11989093 size 1 virtual_protect 0
if
not 11@ == 1
0AA1: return_if_false
03E3: set_texture_to_be_drawn_antialiased 1
074B: draw_texture 1 position 374.0 250.7 scale 35.0 35.0 angle 180.0 color_RGBA 80 240 30 140
return
Pages: 1