Jump to content

Activating, Deactivating And Activating Again A Cleo Script INGAME [Classic]


ArmanCan

Recommended Posts

I know that there is a same request in this topic but it was confusing for me.. 😃

 

I'm using two different scripts..

 

- One of them is TRUCKS&TRAILERS from pep legal and this one is causing a bug during "Reuniting The Families".. i want to disable it before starting the mission.. I know that i can reach the author and inform him about this situation but it takes too long and i don't want to bother him for this small issue..it will be educational for me.. 🙂

- The other one is my custom script.. I want to enable it myself whenever i want (like keypressed or type cheat) after that i want to disable when i'm done with it..

 

Thanks again.. don't forget to stay hydrated 🥤😉

Link to comment
Share on other sites

For your own script - use these opcodes.

Look at my phone mod. Main script is phone.cs and other are .s files that are called from main. Disabling can be done with 0a93 in .s script (add a keycheck or condition) or from the main script using 0459.

 

0A92

STREAM_CUSTOM_SCRIPT

 

0A93

TERMINATE_THIS_CUSTOM_SCRIPT

 

0459

TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME

 

I'm not sure, but there's a chance T&T can be disabled by 0459. Try it.

Edited by vladvo
Link to comment
Share on other sites

I did something and it worked, but you must know the thread name and the thread name must be valid (max. 7 character)

if
    0AAB:   file_exists "CLEO\crazytrain.cs"    
then
    0AAA: 9@ = thread 'TRAIN' pointer
    if
        not 9@ == 0    
    then
        0ABA: end_custom_thread_named 'TRAIN' // - cleo 3 -
    end
end

 

but it's better to edit T&T script and add a key press check

Link to comment
Share on other sites

@vladvo i appreciate your help my man 😉

 

4 minutes ago, ZAZ said:

I did something and it worked, but you must know the thread name and the thread name must be valid (max. 7 character)

well ZAZ.. back in the day you wrote something like this but...

5 minutes ago, ZAZ said:

but it's better to edit T&T script and add a key press check

i can't edit this script because of compiling error (Sanny log is below)... Can you teach me from the T&T Script? If yes i'm posting the script right now 😉

 

The compiler can't get a required number of parameters for the current opcode. 
It may happen if fewer parameters are provided or some of them are invalid. The number of parameters for each opcode is set in the INI file and can be seen in the status bar when the Show opcode info option is enabled.
Possible solutions: provide the required number of parameters:
0001: wait // error, expected one parameter
0001: wait 0 // OK

 

Spoiler
// This file was decompiled using SASCM.ini published on 2022-03-20
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}
{$USE ini}
{$USE newOpcodes}

script_name 'TRUCKS_TRAILERS' 
0000: NOP 
0@ = 0 
1@ = 0 
2@ = 0 
3@ = 0 
4@ = 0 
5@ = 0 
6@ = 0 
7@ = 0 
8@ = 0 
9@ = 0 
10@ = 0 
11@ = 0 
12@ = 0 
13@ = 0 
14@ = 0 
15@ = 0.0 
16@ = 0.0 
17@ = 0.0 
18@ = 0.0 
19@ = 0.0 
20@ = 0.0 
21@ = 0.0 
22@ = 0.0 
23@ = 0.0 
24@ = 0.0 
25@ = 0.0 
26@ = 0 
27@ = 0 
28@ = 0 
29@ = 100000.0 
30@ = 0 
31@ = 0 
TIMERA = 170.0 
TIMERB = 0 

:TRUCKS_TRAILERS_298
wait 2000 
if 
056D:   actor $PLAYER_ACTOR defined 
jf @TRUCKS_TRAILERS_298 
if 
  Player.Defined($PLAYER_CHAR)
jf @TRUCKS_TRAILERS_298 
077E: get_active_interior_to 11@ 
if 
  11@ == 0 
jf @TRUCKS_TRAILERS_298 
if 
  not does_file_exist "cleo\Trucks&Trailers.ini" 
jf @TRUCKS_TRAILERS_428 
print_formatted_now "INI File MISSING" time 3000 
wait 3000 
terminate_this_custom_script 

:TRUCKS_TRAILERS_428
  read_int_from_ini_file 10@ = read_int_from_ini_file "cleo\Trucks&Trailers.ini" section "SETTINGS" key "spawnChances" 
if 
  10@ > 255 
jf @TRUCKS_TRAILERS_517 
10@ = 255 
jump @TRUCKS_TRAILERS_542 

:TRUCKS_TRAILERS_517
if 
   not 10@ >= 0 
jf @TRUCKS_TRAILERS_542 
10@ = 0 

:TRUCKS_TRAILERS_542
  read_int_from_ini_file 11@ = read_int_from_ini_file "cleo\Trucks&Trailers.ini" section "SETTINGS" key "testMode" 
if 
  11@ == 1 
jf @TRUCKS_TRAILERS_618 
08BD: set 10@ bit 9 

:TRUCKS_TRAILERS_618
4@ = 0 
3@ = 0 
9@ = 50 
8@ = File.Open("cleo\Trucks&Trailers.ini", "rt")

:TRUCKS_TRAILERS_674
wait 0 
get_label_pointer 11@ = label @TRUCKS_TRAILERS_10061 
get_label_pointer 12@ = label -10322 
get_label_pointer 13@ = label @TRUCKS_TRAILERS_10583 
get_label_pointer 5@ = label @TRUCKS_TRAILERS_10864 
005A: 11@ += 3@ // (int) 
005A: 12@ += 3@ // (int) 
005A: 13@ += 3@ // (int) 
if and
File.ReadString(8@, 5@, 24)
   not 3@ >= 256 
jf @TRUCKS_TRAILERS_925 
  scan_string 14@ = scan_string 5@ format '%d = %d / %d' 0@ 1@ 2@ 
if and
  14@ == 3 
   not 0@ >= 65536 
   not 1@ >= 65536 
   not 2@ >= 65536 
  0@ >= 0 
  1@ >= 0 
jf @TRUCKS_TRAILERS_918 
write_memory 11@ size 4 value 0@ virtual_protect 0 
write_memory 12@ size 4 value 1@ virtual_protect 0 
write_memory 13@ size 4 value 2@ virtual_protect 0 
4@ += 1 
3@ += 4 

:TRUCKS_TRAILERS_918
jump @TRUCKS_TRAILERS_674 

:TRUCKS_TRAILERS_925
File.Close(8@)
if 
  4@ == 0 
jf @TRUCKS_TRAILERS_985 
print_formatted_now "No Truck/Trailer Found" time 3000 
wait 3000 
terminate_this_custom_script 

:TRUCKS_TRAILERS_985
3@ = 0 
TIMERA = 170.0 

:TRUCKS_TRAILERS_1002
wait 100 
if 
056D:   actor $PLAYER_ACTOR defined 
jf @TRUCKS_TRAILERS_1002 
if 
  Player.Defined($PLAYER_CHAR)
jf @TRUCKS_TRAILERS_1002 
077E: get_active_interior_to 11@ 
if 
  11@ == 0 
jf @TRUCKS_TRAILERS_1002 
if 
  9@ > 0 
jf @TRUCKS_TRAILERS_1086 
9@ -= 1 

:TRUCKS_TRAILERS_1086
cleo_call @TRUCKS_TRAILERS_8032 1 $PLAYER_ACTOR 2@ 
cleo_call @TRUCKS_TRAILERS_8496 1 2@ 11@ 
if 
   not 11@ == 0 
jf @TRUCKS_TRAILERS_1150 
08BD: set 10@ bit 10 
jump @TRUCKS_TRAILERS_1157 

:TRUCKS_TRAILERS_1150
08C3: clear 10@ bit 10 

:TRUCKS_TRAILERS_1157
27@ = 0 
28@ = 0 
29@ = 100000.0 
if 
   not 30@ == 0 
jf @TRUCKS_TRAILERS_1215 
Marker.Disable(30@)
wait 0 
30@ = 0 

:TRUCKS_TRAILERS_1215
if 
  Actor.Driving($PLAYER_ACTOR)
jf @TRUCKS_TRAILERS_1246 
0811: 31@ = actor $PLAYER_ACTOR used_car 
jump @TRUCKS_TRAILERS_1253 

:TRUCKS_TRAILERS_1246
31@ = 0 

:TRUCKS_TRAILERS_1253
if 
08B7:   test 10@ bit 9 
jf @TRUCKS_TRAILERS_1386 
if 
  TIMERA > 70.0 
jf @TRUCKS_TRAILERS_1302 
TIMERA *= 0.999 

:TRUCKS_TRAILERS_1302
if 
  Player.PressingHorn($PLAYER_CHAR)
jf @TRUCKS_TRAILERS_1379 
get_vehicle_pointer 11@ = vehicle 31@ 
11@ += 1224 
read_memory 12@ = read_memory 11@ size 4 virtual_protect 0 
if 
   not 12@ == 0 
jf @TRUCKS_TRAILERS_1379 
07AC: detach_trailer 27@ from_cab 31@ 
9@ = 50 

:TRUCKS_TRAILERS_1379
jump @TRUCKS_TRAILERS_1417 

:TRUCKS_TRAILERS_1386
if 
  TIMERA > 140.0 
jf @TRUCKS_TRAILERS_1417 
TIMERA *= 0.999 

:TRUCKS_TRAILERS_1417
read_memory 6@ = read_memory 12010644 size 4 virtual_protect 0 
6@ += 8 
read_memory 5@ = read_memory 6@ size 4 virtual_protect 0 
if 
  5@ > 0 
jf @TRUCKS_TRAILERS_1002 
6@ -= 4 
read_memory 6@ = read_memory 6@ size 4 virtual_protect 0 
5@ -= 1 
005A: 6@ += 5@ // (int) 
0085: 7@ = 5@ // (int) 

:TRUCKS_TRAILERS_1510
read_memory 11@ = read_memory 6@ size 1 virtual_protect 0 
if 
88B7:   not test 11@ bit 7 
jf @TRUCKS_TRAILERS_4139 
0A90: 0@ = 7@ * 256 // int 
005A: 0@ += 11@ // (int) 
if 
056E:   car 0@ defined 
jf @TRUCKS_TRAILERS_4139 
get_vehicle_pointer TIMERB = vehicle 0@ 
Actor.StorePos($PLAYER_ACTOR, 15@, 16@, 17@)
Car.StorePos(0@, 18@, 19@, 20@)
0509: 25@ = distance_between_XY 15@ 16@ and_XY 18@ 19@ 
0085: 11@ = TIMERB // (int) 
11@ += 1188 
read_memory 13@ = read_memory 11@ size 1 virtual_protect 0 
0085: 11@ = TIMERB // (int) 
11@ += 1428 
read_memory 12@ = read_memory 11@ size 4 virtual_protect 0 
if and
  12@ == 11 
   not 13@ == 3 
jf @TRUCKS_TRAILERS_1881 
0085: 11@ = TIMERB // (int) 
11@ += 1220 
read_memory 11@ = read_memory 11@ size 4 virtual_protect 0 
if 
   not 11@ == 0 
jf @TRUCKS_TRAILERS_1763 
get_vehicle_ref 11@ = vehicle_struct 11@ 

:TRUCKS_TRAILERS_1763
if 
8035:   not  25@ >= 29@ // (float) 
jf @TRUCKS_TRAILERS_1806 
0087: 29@ = 25@ // (float) 
0085: 28@ = 11@ // (int) 
0085: 27@ = 0@ // (int) 

:TRUCKS_TRAILERS_1806
if and
  11@ == 0 
  25@ > 30.0 
jf @TRUCKS_TRAILERS_1874 
Car.RemoveReferences(0@)
if and
88B7:   not test 10@ bit 9 
82CA:   not car 0@ bounding_sphere_visible 
jf @TRUCKS_TRAILERS_1874 
Car.Destroy(0@)
jump @TRUCKS_TRAILERS_4167 

:TRUCKS_TRAILERS_1874
jump @TRUCKS_TRAILERS_4139 

:TRUCKS_TRAILERS_1881
if and
  12@ == 0 
  13@ == 1 
jf @TRUCKS_TRAILERS_4139 
0085: 11@ = TIMERB // (int) 
11@ += 1224 
read_memory 12@ = read_memory 11@ size 4 virtual_protect 0 
if 
  12@ == 0 
jf @TRUCKS_TRAILERS_4139 
if and
  not Car.Wrecked(0@)
82BF:   not car 0@ sunk 
81F4:   not car 0@ flipped 
jf @TRUCKS_TRAILERS_4139 
0085: 14@ = TIMERB // (int) 
14@ += 1172 
read_memory 16@ = read_memory 14@ size 4 virtual_protect 0 
0097: make 16@ absolute_float 
if 
   not 16@ >= 0.2 
jf @TRUCKS_TRAILERS_4139 
08EC: 14@ = car 0@ class 
bit_and 14@ = 14@ AND -4 
if or
  14@ == 0 
003B:   31@ == 0@ // (int) 
jf @TRUCKS_TRAILERS_4139 
if or
88B7:   not test 10@ bit 9 
803B:   not  31@ == 0@ // (int) 
jf @TRUCKS_TRAILERS_2731 
Car.StorePos(0@, 15@, 16@, 17@)
068E: get_camera_target_point_to 18@ 19@ 20@ 
068D: get_camera_position_to 21@ 22@ 23@ 
0063: 15@ -= 21@ // (float) 
0063: 16@ -= 22@ // (float) 
0063: 18@ -= 21@ // (float) 
0063: 19@ -= 22@ // (float) 
05A4: get_angle_between_vectors_origin_to 15@ 16@ and_origin_to 18@ 19@ store_to 24@ 
Actor.StorePos($PLAYER_ACTOR, 21@, 22@, 23@)
0407: store_coords_to 15@ 16@ 17@ from_car 0@ with_offset 0.0 10.0 0.0 
0407: store_coords_to 18@ 19@ 20@ from_car 0@ with_offset 0.0 -10.0 0.0 
0063: 17@ -= 20@ // (float) 
0097: make 17@ absolute_float 
if 
   not 17@ >= 4.0 
jf @TRUCKS_TRAILERS_4139 
0509: 17@ = distance_between_XY 15@ 16@ and_XY 21@ 22@ 
0509: 23@ = distance_between_XY 18@ 19@ and_XY 21@ 22@ 
0063: 23@ -= 17@ // (float) 
if 
   not 31@ == 0 
jf @TRUCKS_TRAILERS_2384 
02E3: 15@ = car 31@ speed 
02E3: 16@ = car 0@ speed 
0063: 15@ -= 16@ // (float) 
jump @TRUCKS_TRAILERS_2394 

:TRUCKS_TRAILERS_2384
15@ = 0.0 

:TRUCKS_TRAILERS_2394
if and
  23@ > 14.0 
   not 24@ >= 70.0 
8035:   not  TIMERA >= 25@ // (float) 
jf @TRUCKS_TRAILERS_2441 
0087: TIMERA = 25@ // (float) 

:TRUCKS_TRAILERS_2441
if 
  9@ == 0 
jf @TRUCKS_TRAILERS_4139 
01E9: 14@ = car 0@ num_passengers 
if 
  14@ == 0 
jf @TRUCKS_TRAILERS_4139 
if 
  25@ > 40.0 
jf @TRUCKS_TRAILERS_4139 
if or
   not 24@ >= 60.0 
   not 23@ >= 14.0 
  25@ > 90.0 
  15@ > -5.0 
jf @TRUCKS_TRAILERS_2731 
if or
  24@ > 60.0 
02CA:   car 0@ bounding_sphere_visible 
   not 23@ >= 14.0 
jf @TRUCKS_TRAILERS_2731 
if or
  24@ > 40.0 
02CA:   car 0@ bounding_sphere_visible 
00C2:   sphere_onscreen 18@ 19@ 20@ radius 0.0 
0025:   25@ > TIMERA // (float) 
  23@ > -16.0 
jf @TRUCKS_TRAILERS_2731 
if or
   not 23@ >= 16.0 
82CA:   not car 0@ bounding_sphere_visible 
8035:   not  25@ >= TIMERA // (float) 
jf @TRUCKS_TRAILERS_2731 
25@ *= 0.8 
if and
   not 23@ >= -16.0 
0035:   25@ >= TIMERA // (float) 
02CA:   car 0@ bounding_sphere_visible 
jf @TRUCKS_TRAILERS_4139 

:TRUCKS_TRAILERS_2731
cleo_call @TRUCKS_TRAILERS_4670 2 0@ 20.0 15@ 
if 
   not 15@ == 0.0 
jf @TRUCKS_TRAILERS_4139 
if 
08B7:   test 10@ bit 10 
jf @TRUCKS_TRAILERS_2837 
Car.StorePos(0@, 15@, 16@, 17@)
cleo_call @TRUCKS_TRAILERS_5835 4 15@ 16@ 17@ 2@ 18@ 
jump @TRUCKS_TRAILERS_2847 

:TRUCKS_TRAILERS_2837
18@ = 1.0 

:TRUCKS_TRAILERS_2847
0085: 14@ = 4@ // (int) 
TIMERB += 34 
read_memory TIMERB = read_memory TIMERB size 2 virtual_protect 0 

:TRUCKS_TRAILERS_2874
14@ -= 1 
get_label_pointer 11@ = label @TRUCKS_TRAILERS_10061 
get_label_pointer 12@ = label -10322 
get_label_pointer 13@ = label @TRUCKS_TRAILERS_10583 
005A: 11@ += 3@ // (int) 
005A: 12@ += 3@ // (int) 
005A: 13@ += 3@ // (int) 
3@ += 4 
read_memory 8@ = read_memory 11@ size 4 virtual_protect 0 
read_memory 1@ = read_memory 12@ size 4 virtual_protect 0 
read_memory 13@ = read_memory 13@ size 4 virtual_protect 0 
if or
  8@ == -1 
  3@ == 256 
jf @TRUCKS_TRAILERS_3077 
3@ = 4 
get_label_pointer 11@ = label @TRUCKS_TRAILERS_10061 
get_label_pointer 12@ = label -10322 
get_label_pointer 13@ = label @TRUCKS_TRAILERS_10583 
read_memory 8@ = read_memory 11@ size 4 virtual_protect 0 
read_memory 1@ = read_memory 12@ size 4 virtual_protect 0 
read_memory 13@ = read_memory 13@ size 4 virtual_protect 0 

:TRUCKS_TRAILERS_3077
if and
08B7:   test 10@ bit 9 
003B:   31@ == 0@ // (int) 
jf @TRUCKS_TRAILERS_3154 
if or
803B:   not  8@ == TIMERB // (int) 
  1@ == 0 
jf @TRUCKS_TRAILERS_3625 
if 
  14@ == 0 
jf @TRUCKS_TRAILERS_2874 
jump @TRUCKS_TRAILERS_4139 

:TRUCKS_TRAILERS_3154
if 
88B7:   not test 10@ bit 9 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 1 
  18@ > 0.9 
  2@ >= 4 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 4 
  18@ > 0.9 
   not 2@ > 4 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 0 
08B7:   test 10@ bit 10 
  2@ >= 4 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 3 
08B7:   test 10@ bit 10 
   not 2@ > 4 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 2 
   not 2@ == 4 
jf @TRUCKS_TRAILERS_3381 
if or
88B7:   not test 13@ bit 5 
   not 2@ >= 8 
jf @TRUCKS_TRAILERS_3381 
if 
  14@ == 0 
jf @TRUCKS_TRAILERS_2874 
jump @TRUCKS_TRAILERS_4167 

:TRUCKS_TRAILERS_3381
046C: 14@ = car 0@ driver 
if 
056D:   actor 14@ defined 
jf @TRUCKS_TRAILERS_4139 
if 
056E:   car 26@ defined 
jf @TRUCKS_TRAILERS_3426 
Car.RemoveReferences(26@)

:TRUCKS_TRAILERS_3426
26@ = 0 
if 
   not 1@ == 0 
jf @TRUCKS_TRAILERS_3576 
if 
  8@ > 0 
jf @TRUCKS_TRAILERS_3528 
cleo_call @TRUCKS_TRAILERS_5149 2 0@ 8@ 0@ 
if 
  0@ == 0 
jf @TRUCKS_TRAILERS_3513 
jump @TRUCKS_TRAILERS_4139 

:TRUCKS_TRAILERS_3513
0085: 26@ = 0@ // (int) 
jump @TRUCKS_TRAILERS_3569 

:TRUCKS_TRAILERS_3528
cleo_call @TRUCKS_TRAILERS_4491 1 0@ 14@ 
if 
  14@ == 0 
jf @TRUCKS_TRAILERS_3569 
jump @TRUCKS_TRAILERS_4139 

:TRUCKS_TRAILERS_3569
jump @TRUCKS_TRAILERS_3625 

:TRUCKS_TRAILERS_3576
0085: 1@ = 0@ // (int) 
cleo_call @TRUCKS_TRAILERS_5389 2 0@ 8@ 0@ 
0085: 26@ = 0@ // (int) 
9@ = 100 
jump @TRUCKS_TRAILERS_4010 

:TRUCKS_TRAILERS_3625
Model.Load(1@)

:TRUCKS_TRAILERS_3630
  not Model.Available(1@)
jf @TRUCKS_TRAILERS_3653 
wait 0 
jump @TRUCKS_TRAILERS_3630 

:TRUCKS_TRAILERS_3653
if 
056E:   car 0@ defined 
jf @TRUCKS_TRAILERS_4132 
cleo_call @TRUCKS_TRAILERS_4394 1 1@ 25@ 24@ 
cleo_call @TRUCKS_TRAILERS_4670 2 0@ 24@ 21@ 
0087: 17@ = 25@ // (float) 
17@ *= -1.0 
005B: 17@ += 21@ // (float) 
0407: store_coords_to 18@ 19@ 20@ from_car 0@ with_offset 0.0 17@ 0.3 
0407: store_coords_to 15@ 16@ 17@ from_car 0@ with_offset 0.0 0.0 0.3 
if 
   not 21@ >= -0.1 
jf @TRUCKS_TRAILERS_4139 
22@ = Car.Angle(0@)
0085: 12@ = 1@ // (int) 
Car.Create(1@, 1@, 18@, 19@, 200.0)
0338: set_car 1@ visibility 0 
wait 0 
Model.Destroy(12@)
if and
056E:   car 0@ defined 
056E:   car 1@ defined 
jf @TRUCKS_TRAILERS_4132 
0918: set_car 1@ engine_operation 1 
if 
  26@ == 0 
jf @TRUCKS_TRAILERS_3915 
0085: 26@ = 1@ // (int) 

:TRUCKS_TRAILERS_3915
Car.Angle(1@) = 22@
Car.PutAt(1@, 18@, 19@, 20@)
0338: set_car 1@ visibility 1 
0893: put_trailer 1@ on_cab 0@ 
wait 50 
if and
056E:   car 0@ defined 
056E:   car 1@ defined 
jf @TRUCKS_TRAILERS_4132 
07AC: detach_trailer 1@ from_cab 0@ 
wait 80 
if and
056E:   car 0@ defined 
056E:   car 1@ defined 
jf @TRUCKS_TRAILERS_4132 

:TRUCKS_TRAILERS_4010
if 
88B7:   not test 10@ bit 9 
jf @TRUCKS_TRAILERS_4053 
bit_and 9@ = 10@ AND 255 
9@ *= 3 
9@ += 50 

:TRUCKS_TRAILERS_4053
0893: put_trailer 1@ on_cab 0@ 
wait 50 
if and
056E:   car 0@ defined 
056E:   car 1@ defined 
jf @TRUCKS_TRAILERS_4132 
07AC: detach_trailer 1@ from_cab 0@ 
wait 80 
if and
056E:   car 0@ defined 
056E:   car 1@ defined 
jf @TRUCKS_TRAILERS_4132 
0893: put_trailer 1@ on_cab 0@ 
wait 2000 

:TRUCKS_TRAILERS_4132
jump @TRUCKS_TRAILERS_4167 

:TRUCKS_TRAILERS_4139
6@ -= 1 
7@ -= 1 
  0 > 7@ 
jf @TRUCKS_TRAILERS_1510 

:TRUCKS_TRAILERS_4167
if and
08B7:   test 10@ bit 9 
   not 29@ >= 100000.0 
   not 27@ == 0 
jf @TRUCKS_TRAILERS_1002 
if 
056E:   car 27@ defined 
jf @TRUCKS_TRAILERS_1002 
if 
02CA:   car 27@ bounding_sphere_visible 
jf @TRUCKS_TRAILERS_1002 
Marker.CreateAboveCar(30@, 27@)
get_vehicle_pointer 27@ = vehicle 27@ 
27@ += 34 
read_memory 27@ = read_memory 27@ size 2 virtual_protect 0 
if and
   not 28@ == 0 
056E:   car 28@ defined 
jf @TRUCKS_TRAILERS_4345 
get_vehicle_pointer 28@ = vehicle 28@ 
28@ += 34 
read_memory 28@ = read_memory 28@ size 2 virtual_protect 0 
print_formatted_now "%i=%i" time 990 28@ 27@ 
jump @TRUCKS_TRAILERS_4363 

:TRUCKS_TRAILERS_4345
print_formatted_now "Lost %i" time 990 27@ 

:TRUCKS_TRAILERS_4363
27@ = 0 
28@ = 0 
29@ = 100000.0 
jump @TRUCKS_TRAILERS_1002 

:TRUCKS_TRAILERS_4394
07E4: get_model 0@ dimensions_cornerA_to 1@ 2@ 3@ dimensions_cornerB_to 4@ 5@ 6@ 
if 
8035:   not  5@ >= 2@ // (float) 
jf @TRUCKS_TRAILERS_4451 
0087: 7@ = 2@ // (float) 
jump @TRUCKS_TRAILERS_4459 

:TRUCKS_TRAILERS_4451
0087: 7@ = 5@ // (float) 

:TRUCKS_TRAILERS_4459
0087: 8@ = 5@ // (float) 
0063: 8@ -= 2@ // (float) 
0097: make 8@ absolute_float 
cleo_return 2 7@ 8@ 

:TRUCKS_TRAILERS_4491
get_vehicle_pointer 1@ = vehicle 0@ 
1@ += 900 
read_memory 1@ = read_memory 1@ size 4 virtual_protect 0 
1@ += 204 
read_memory 2@ = read_memory 1@ size 4 virtual_protect 0 
bit_and 2@ = 2@ AND 64 
if 
  2@ == 0 
jf @TRUCKS_TRAILERS_4574 
cleo_return 1 0 

:TRUCKS_TRAILERS_4574
cleo_call @TRUCKS_TRAILERS_10006 1 0@ 
02E3: 4@ = car 0@ speed 
0561: 3@ = create_passenger_in_car 0@ seat 0 
Actor.RemoveReferences(3@)
0428: set_car 0@ avoid_level_transitions 1 
00AE: set_car 0@ traffic_behaviour_to 0 
Car.SetMaxSpeed(0@, 17.0)
if 
  4@ > 17.0 
jf @TRUCKS_TRAILERS_4663 
Car.SetSpeedInstantly(0@, 4@)

:TRUCKS_TRAILERS_4663
cleo_return 1 1 

:TRUCKS_TRAILERS_4670
2@ = Car.Model(0@)
07E4: get_model 2@ dimensions_cornerA_to 6@ 7@ 8@ dimensions_cornerB_to 9@ 10@ 11@ 
if 
8035:   not  8@ >= 11@ // (float) 
jf @TRUCKS_TRAILERS_4735 
0087: 4@ = 8@ // (float) 
jump @TRUCKS_TRAILERS_4743 

:TRUCKS_TRAILERS_4735
0087: 4@ = 11@ // (float) 

:TRUCKS_TRAILERS_4743
4@ += 0.4 
if 
8035:   not  10@ >= 7@ // (float) 
jf @TRUCKS_TRAILERS_4787 
0087: 5@ = 10@ // (float) 
jump @TRUCKS_TRAILERS_4795 

:TRUCKS_TRAILERS_4787
0087: 5@ = 7@ // (float) 

:TRUCKS_TRAILERS_4795
0087: 12@ = 9@ // (float) 
0087: 13@ = 6@ // (float) 
12@ *= 1.2 
13@ *= 1.2 
0087: 3@ = 5@ // (float) 
3@ -= 1.0 
0407: store_coords_to 6@ 7@ 8@ from_car 0@ with_offset 12@ 3@ 4@ 
0063: 3@ -= 1@ // (float) 
4@ += 1.3 
0407: store_coords_to 9@ 10@ 11@ from_car 0@ with_offset 13@ 3@ 4@ 
2@ = 1 
if 
86BD:   not no_obstacles_between 6@ 7@ 8@ and 9@ 10@ 11@ solid 1 car 1 actor 1 object 1 particle 0 
jf @TRUCKS_TRAILERS_4968 
2@ = 0 

:TRUCKS_TRAILERS_4968
0087: 3@ = 5@ // (float) 
3@ -= 1.0 
0407: store_coords_to 6@ 7@ 8@ from_car 0@ with_offset 13@ 3@ 4@ 
0063: 3@ -= 1@ // (float) 
4@ -= 1.3 
0407: store_coords_to 9@ 10@ 11@ from_car 0@ with_offset 12@ 3@ 4@ 
if 
86BD:   not no_obstacles_between 6@ 7@ 8@ and 9@ 10@ 11@ solid 1 car 1 actor 1 object 1 particle 0 
jf @TRUCKS_TRAILERS_5098 
2@ = 0 

:TRUCKS_TRAILERS_5098
if 
   not 2@ == 0 
jf @TRUCKS_TRAILERS_5131 
0087: 3@ = 5@ // (float) 
jump @TRUCKS_TRAILERS_5141 

:TRUCKS_TRAILERS_5131
3@ = 0.0 

:TRUCKS_TRAILERS_5141
cleo_return 1 3@ 

:TRUCKS_TRAILERS_5149
0407: store_coords_to 2@ 3@ 4@ from_car 0@ with_offset 0.0 0.0 0.2 
02E3: 7@ = car 0@ speed 
6@ = Car.Angle(0@)
046C: 5@ = car 0@ driver 
Car.RemoveReferences(0@)
Car.PutAt(0@, 2@, 3@, -100.0)
Model.Load(1@)

:TRUCKS_TRAILERS_5228
  not Model.Available(1@)
jf @TRUCKS_TRAILERS_5251 
wait 0 
jump @TRUCKS_TRAILERS_5228 

:TRUCKS_TRAILERS_5251
Car.Create(0@, 1@, 2@, 3@, 4@)
Car.Angle(0@) = 6@
0428: set_car 0@ avoid_level_transitions 1 
Car.SetMaxSpeed(0@, 17.0)
if 
  7@ > 17.0 
jf @TRUCKS_TRAILERS_5324 
7@ = 17.0 

:TRUCKS_TRAILERS_5324
Car.SetSpeedInstantly(0@, 7@)
wait 0 
if 
856E:   not car 0@ defined 
jf @TRUCKS_TRAILERS_5359 
cleo_return 1 0 

:TRUCKS_TRAILERS_5359
0560: create_random_actor_in_car 0@ handle_as 5@ 
wait 0 
Model.Destroy(1@)
Actor.RemoveReferences(5@)
cleo_return 1 0@ 

:TRUCKS_TRAILERS_5389
12@ = 0 
15@ = Car.Model(0@)
Model.Load(15@)
cleo_call @TRUCKS_TRAILERS_10006 1 0@ 
Car.SetDriverBehaviour(0@, CarMission.StopForever)
cleo_call @TRUCKS_TRAILERS_4394 1 15@ 18@ 14@ 
0063: 18@ -= 14@ // (float) 
02E3: 8@ = car 0@ speed 
7@ = Car.Angle(0@)
0407: store_coords_to 9@ 10@ 11@ from_car 0@ with_offset 0.0 0.0 0.2 
Model.Load(1@)
038B: load_requested_models 
Model.Destroy(15@)
if 
056E:   car 0@ defined 
jf @TRUCKS_TRAILERS_5653 
cleo_call @TRUCKS_TRAILERS_4394 1 1@ 13@ 14@ 
0063: 13@ -= 14@ // (float) 
005B: 13@ += 18@ // (float) 
13@ -= 1.0 
0407: store_coords_to 3@ 4@ 5@ from_car 0@ with_offset 0.0 13@ 0.5 
Car.PutAt(0@, 3@, 4@, 5@)
Car.Angle(0@) = 7@
081D: set_car 0@ engine_broken 1 
Car.Health(0@) = 270
0918: set_car 0@ engine_operation 0 
046C: 12@ = car 0@ driver 

:TRUCKS_TRAILERS_5653
Car.Create(2@, 1@, 9@, 10@, 11@)
Car.Angle(2@) = 7@
Model.Destroy(1@)
0428: set_car 2@ avoid_level_transitions 1 
Car.SetMaxSpeed(2@, 17.0)
if 
  8@ > 17.0 
jf @TRUCKS_TRAILERS_5731 
8@ = 17.0 

:TRUCKS_TRAILERS_5731
Car.SetSpeedInstantly(2@, 8@)
wait 0 
0560: create_random_actor_in_car 2@ handle_as 6@ 
if or
  12@ == 0 
856D:   not actor 12@ defined 
jf @TRUCKS_TRAILERS_5791 
0561: 12@ = create_passenger_in_car 2@ seat 0 
jump @TRUCKS_TRAILERS_5817 

:TRUCKS_TRAILERS_5791
0362: remove_actor 12@ from_car_and_place_at 9@ 10@ 100.0 
0430: put_actor 12@ into_car 2@ passenger_seat -1 

:TRUCKS_TRAILERS_5817
Actor.RemoveReferences(6@)
Actor.RemoveReferences(12@)
cleo_return 1 2@ 

:TRUCKS_TRAILERS_5835
4@ = 1.0 
if 
  3@ == 2 
jf @TRUCKS_TRAILERS_5944 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 4 30.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 5 30.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_5944
if 
  3@ == 1 
jf @TRUCKS_TRAILERS_6080 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 1 30.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 2 30.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 3 30.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6080
if 
  3@ == 3 
jf @TRUCKS_TRAILERS_6216 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 6 30.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 7 30.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 8 30.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6216
if 
  3@ == 9 
jf @TRUCKS_TRAILERS_6315 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 9 50.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 10 50.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6315
if 
  3@ == 8 
jf @TRUCKS_TRAILERS_6414 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 17 50.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 18 50.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6414
if 
  3@ == 6 
jf @TRUCKS_TRAILERS_6468 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 11 60.0 4@ 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6468
if 
  3@ == 5 
jf @TRUCKS_TRAILERS_6604 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 14 50.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 15 50.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 16 50.0 5@ 
006B: 4@ *= 5@ // (float) 
jump @TRUCKS_TRAILERS_6706 

:TRUCKS_TRAILERS_6604
if or
  3@ == 7 
   not 1@ >= -2890.0 
jf @TRUCKS_TRAILERS_6706 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 12 60.0 5@ 
006B: 4@ *= 5@ // (float) 
cleo_call @TRUCKS_TRAILERS_6714 5 0@ 1@ 2@ 13 40.0 5@ 
006B: 4@ *= 5@ // (float) 

:TRUCKS_TRAILERS_6706
cleo_return 1 4@ 

:TRUCKS_TRAILERS_6714
22@ = 0 
23@ = -1 
if 
  3@ == 1 
jf @TRUCKS_TRAILERS_6763 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11044 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6763
if 
  3@ == 2 
jf @TRUCKS_TRAILERS_6798 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11156 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6798
if 
  3@ == 3 
jf @TRUCKS_TRAILERS_6833 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11340 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6833
if 
  3@ == 4 
jf @TRUCKS_TRAILERS_6868 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11476 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6868
if 
  3@ == 5 
jf @TRUCKS_TRAILERS_6903 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11804 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6903
if 
  3@ == 6 
jf @TRUCKS_TRAILERS_6938 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_11916 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6938
if 
  3@ == 7 
jf @TRUCKS_TRAILERS_6973 
get_label_pointer 3@ = label -12160 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_6973
if 
  3@ == 8 
jf @TRUCKS_TRAILERS_7008 
get_label_pointer 3@ = label -12308 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7008
if 
  3@ == 9 
jf @TRUCKS_TRAILERS_7043 
get_label_pointer 3@ = label -12372 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7043
if 
  3@ == 10 
jf @TRUCKS_TRAILERS_7078 
get_label_pointer 3@ = label -12496 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7078
if 
  3@ == 17 
jf @TRUCKS_TRAILERS_7113 
get_label_pointer 3@ = label -13292 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7113
if 
  3@ == 18 
jf @TRUCKS_TRAILERS_7148 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_13524 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7148
if 
  3@ == 11 
jf @TRUCKS_TRAILERS_7183 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_12608 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7183
if 
  3@ == 12 
jf @TRUCKS_TRAILERS_7218 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_12720 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7218
if 
  3@ == 13 
jf @TRUCKS_TRAILERS_7253 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_12868 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7253
if 
  3@ == 14 
jf @TRUCKS_TRAILERS_7288 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_12968 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7288
if 
  3@ == 15 
jf @TRUCKS_TRAILERS_7323 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_13056 
jump @TRUCKS_TRAILERS_7351 

:TRUCKS_TRAILERS_7323
if 
  3@ == 16 
jf @TRUCKS_TRAILERS_7351 
get_label_pointer 3@ = label @TRUCKS_TRAILERS_13228 

:TRUCKS_TRAILERS_7351
get_var_pointer 24@ = var 5@ 
21@ = 1.0 
22@ = 0 
23@ = 0 

:TRUCKS_TRAILERS_7383
copy_memory 3@ to 24@ size 28 
3@ += 12 
050A: 12@ = distance_between_XYZ 5@ 6@ 7@ and_XYZ 8@ 9@ 10@ 
050A: 13@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 8@ 9@ 10@ 
050A: 14@ = distance_between_XYZ 5@ 6@ 7@ and_XYZ 0@ 1@ 2@ 
if 
   not 12@ >= 0.1 
jf @TRUCKS_TRAILERS_7497 
jump @TRUCKS_TRAILERS_8024 

:TRUCKS_TRAILERS_7497
0087: 15@ = 0@ // (float) 
0087: 16@ = 1@ // (float) 
0087: 18@ = 5@ // (float) 
0087: 19@ = 6@ // (float) 
0063: 15@ -= 8@ // (float) 
0063: 16@ -= 9@ // (float) 
0063: 18@ -= 8@ // (float) 
0063: 19@ -= 9@ // (float) 
05A4: get_angle_between_vectors_origin_to 15@ 16@ and_origin_to 18@ 19@ store_to 17@ 
0087: 15@ = 0@ // (float) 
0087: 16@ = 1@ // (float) 
0087: 18@ = 8@ // (float) 
0087: 19@ = 9@ // (float) 
0063: 15@ -= 5@ // (float) 
0063: 16@ -= 6@ // (float) 
0063: 18@ -= 5@ // (float) 
0063: 19@ -= 6@ // (float) 
05A4: get_angle_between_vectors_origin_to 15@ 16@ and_origin_to 18@ 19@ store_to 20@ 
if and
   not 17@ > 89.0 
   not 20@ > 89.0 
jf @TRUCKS_TRAILERS_7894 
if 
8035:   not  20@ >= 17@ // (float) 
jf @TRUCKS_TRAILERS_7774 
02F6: 16@ = sine 20@ // (float) 
006B: 16@ *= 14@ // (float) 
02F7: 17@ = cosine 20@ // (float) 
006B: 10@ *= 17@ // (float) 
18@ = 1.0 
0063: 18@ -= 17@ // (float) 
006B: 7@ *= 18@ // (float) 
jump @TRUCKS_TRAILERS_7832 

:TRUCKS_TRAILERS_7774
02F6: 16@ = sine 17@ // (float) 
006B: 16@ *= 13@ // (float) 
02F7: 17@ = cosine 17@ // (float) 
006B: 7@ *= 17@ // (float) 
18@ = 1.0 
0063: 18@ -= 17@ // (float) 
006B: 10@ *= 18@ // (float) 

:TRUCKS_TRAILERS_7832
005B: 10@ += 7@ // (float) 
0087: 18@ = 10@ // (float) 
0063: 18@ -= 2@ // (float) 
18@ *= 2.0 
0509: 20@ = distance_between_XY 16@ 18@ and_XY 0.0 0.0 
jump @TRUCKS_TRAILERS_7929 

:TRUCKS_TRAILERS_7894
0087: 20@ = 13@ // (float) 
if 
8035:   not  14@ >= 20@ // (float) 
jf @TRUCKS_TRAILERS_7929 
0087: 20@ = 14@ // (float) 

:TRUCKS_TRAILERS_7929
0073: 20@ /= 4@ // (float) 
if 
  20@ > 1.0 
jf @TRUCKS_TRAILERS_7968 
20@ = 1.0 

:TRUCKS_TRAILERS_7968
if 
8035:   not  20@ >= 21@ // (float) 
jf @TRUCKS_TRAILERS_8003 
0087: 21@ = 20@ // (float) 
0085: 23@ = 22@ // (int) 

:TRUCKS_TRAILERS_8003
22@ += 1 
  11@ == 0 
jf @TRUCKS_TRAILERS_7383 

:TRUCKS_TRAILERS_8024
cleo_return 1 21@ 

:TRUCKS_TRAILERS_8032
if 
0154:   actor 0@ in_zone 'SF'  // San Fierro
jf @TRUCKS_TRAILERS_8071 
1@ = 1 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8071
if 
0154:   actor 0@ in_zone 'LA'  // Los Santos
jf @TRUCKS_TRAILERS_8110 
1@ = 2 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8110
if 
0154:   actor 0@ in_zone 'VE'  // Las Venturas
jf @TRUCKS_TRAILERS_8149 
1@ = 3 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8149
if or
0154:   actor $PLAYER_ACTOR in_zone 'DILLI'  // Dillimore
0154:   actor $PLAYER_ACTOR in_zone 'BLUEB'  // Blueberry
0154:   actor $PLAYER_ACTOR in_zone 'BLUEB1' 
0154:   actor $PLAYER_ACTOR in_zone 'PALO'  // Palomino Creek
0154:   actor $PLAYER_ACTOR in_zone 'MONT'  // Montgomery
0154:   actor $PLAYER_ACTOR in_zone 'ANGPI'  // Angel Pine
0154:   actor $PLAYER_ACTOR in_zone 'ELQUE'  // El Quebrados
0154:   actor $PLAYER_ACTOR in_zone 'CARSO'  // Fort Carson
jf @TRUCKS_TRAILERS_8286 
1@ = 4 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8286
if 
0154:   actor 0@ in_zone 'BONE'  // Bone County
jf @TRUCKS_TRAILERS_8325 
1@ = 9 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8325
if 
0154:   actor 0@ in_zone 'RED'  // Red County
jf @TRUCKS_TRAILERS_8364 
1@ = 5 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8364
if 
0154:   actor 0@ in_zone 'FLINTC'  // Flint County
jf @TRUCKS_TRAILERS_8403 
1@ = 6 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8403
if 
0154:   actor 0@ in_zone 'WHET'  // Whetstone
jf @TRUCKS_TRAILERS_8442 
1@ = 7 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8442
if 
0154:   actor 0@ in_zone 'ROBAD'  // Tierra Robada
jf @TRUCKS_TRAILERS_8481 
1@ = 8 
jump @TRUCKS_TRAILERS_8488 

:TRUCKS_TRAILERS_8481
1@ = 10 

:TRUCKS_TRAILERS_8488
cleo_return 1 1@ 

:TRUCKS_TRAILERS_8496
1@ = 0 
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
if 
  0@ == 2 
jf @TRUCKS_TRAILERS_8606 
cleo_call @TRUCKS_TRAILERS_9286 4 4 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 5 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_8606
if 
  0@ == 1 
jf @TRUCKS_TRAILERS_8727 
cleo_call @TRUCKS_TRAILERS_9286 4 1 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 2 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 3 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_8727
if 
  0@ == 3 
jf @TRUCKS_TRAILERS_8848 
cleo_call @TRUCKS_TRAILERS_9286 4 6 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 7 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 8 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_8848
if 
  0@ == 9 
jf @TRUCKS_TRAILERS_8937 
cleo_call @TRUCKS_TRAILERS_9286 4 9 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 10 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_8937
if 
  0@ == 8 
jf @TRUCKS_TRAILERS_9026 
cleo_call @TRUCKS_TRAILERS_9286 4 17 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 18 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_9026
if 
  0@ == 6 
jf @TRUCKS_TRAILERS_9075 
cleo_call @TRUCKS_TRAILERS_9286 4 11 3@ 4@ 5@ 1@ 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_9075
if 
  0@ == 5 
jf @TRUCKS_TRAILERS_9196 
cleo_call @TRUCKS_TRAILERS_9286 4 14 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 15 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 16 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
jump @TRUCKS_TRAILERS_9278 

:TRUCKS_TRAILERS_9196
if 
  0@ == 7 
jf @TRUCKS_TRAILERS_9278 
cleo_call @TRUCKS_TRAILERS_9286 4 12 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 
cleo_call @TRUCKS_TRAILERS_9286 4 13 3@ 4@ 5@ 2@ 
005A: 1@ += 2@ // (int) 

:TRUCKS_TRAILERS_9278
cleo_return 1 1@ 

:TRUCKS_TRAILERS_9286
if 
  0@ == 1 
jf @TRUCKS_TRAILERS_9321 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11044 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9321
if 
  0@ == 2 
jf @TRUCKS_TRAILERS_9356 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11156 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9356
if 
  0@ == 3 
jf @TRUCKS_TRAILERS_9391 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11340 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9391
if 
  0@ == 4 
jf @TRUCKS_TRAILERS_9426 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11476 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9426
if 
  0@ == 5 
jf @TRUCKS_TRAILERS_9461 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11804 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9461
if 
  0@ == 6 
jf @TRUCKS_TRAILERS_9496 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_11916 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9496
if 
  0@ == 7 
jf @TRUCKS_TRAILERS_9531 
get_label_pointer 0@ = label -12160 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9531
if 
  0@ == 8 
jf @TRUCKS_TRAILERS_9566 
get_label_pointer 0@ = label -12308 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9566
if 
  0@ == 9 
jf @TRUCKS_TRAILERS_9601 
get_label_pointer 0@ = label -12372 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9601
if 
  0@ == 10 
jf @TRUCKS_TRAILERS_9636 
get_label_pointer 0@ = label -12496 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9636
if 
  0@ == 17 
jf @TRUCKS_TRAILERS_9671 
get_label_pointer 0@ = label -13292 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9671
if 
  0@ == 18 
jf @TRUCKS_TRAILERS_9706 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_13524 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9706
if 
  0@ == 11 
jf @TRUCKS_TRAILERS_9741 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_12608 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9741
if 
  0@ == 12 
jf @TRUCKS_TRAILERS_9776 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_12720 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9776
if 
  0@ == 13 
jf @TRUCKS_TRAILERS_9811 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_12868 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9811
if 
  0@ == 14 
jf @TRUCKS_TRAILERS_9846 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_12968 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9846
if 
  0@ == 15 
jf @TRUCKS_TRAILERS_9881 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_13056 
jump @TRUCKS_TRAILERS_9909 

:TRUCKS_TRAILERS_9881
if 
  0@ == 16 
jf @TRUCKS_TRAILERS_9909 
get_label_pointer 0@ = label @TRUCKS_TRAILERS_13228 

:TRUCKS_TRAILERS_9909
get_var_pointer 8@ = var 4@ 

:TRUCKS_TRAILERS_9917
copy_memory 0@ to 8@ size 16 
0@ += 12 
050A: 9@ = distance_between_XYZ 4@ 5@ 6@ and_XYZ 1@ 2@ 3@ 
if 
   not 9@ >= 120.0 
jf @TRUCKS_TRAILERS_9985 
cleo_return 1 1 

:TRUCKS_TRAILERS_9985
  7@ == 0 
jf @TRUCKS_TRAILERS_9917 
cleo_return 1 0 

:TRUCKS_TRAILERS_10006
get_vehicle_pointer 0@ = vehicle 0@ 
0@ += 1068 
read_memory 1@ = read_memory 0@ size 1 virtual_protect 0 
bit_or 1@ = 1@ OR 64 
write_memory 0@ size 1 value 1@ virtual_protect 0 
cleo_return 0 

:TRUCKS_TRAILERS_10061
hex
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF
end

:TRUCKS_TRAILERS_10583
hex
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
 FF FF FF FF
end
00FF:   actor on_foot 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 

:TRUCKS_TRAILERS_10864
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 
0000: NOP 

:TRUCKS_TRAILERS_11044
hex
 8D FD ED C4 96 26 8B C4 A9 80 19 42 CD FE ED C4
 27 F2 66 C4 71 AE 33 42 D1 03 EE C4 AB 4C 3B C4
 37 4D 33 42 D8 48 ED C4 9F 46 9F C1 07 8A 19 42
 3C 24 EA C4 63 94 56 43 05 EF 16 42 4E EB E6 C4
 AE 64 9C 43 AC 6B 18 42 CD 36 E3 C4 A6 95 BE 43
 B0 46 1C 42 04 7A D0 C4 D3 00 08 44 AD 7F 16 42
 CE D1 97 C4 41 3C 7F 44 68 03 28 42 00 00 00 00
end

:TRUCKS_TRAILERS_11156
hex
 0B E5 F2 C4 36 ED C8 C3 07 67 1E 42 90 9F FC C4
 85 D7 B2 C3 F9 A2 0A 42 BD 29 07 C5 AD F1 AA C3
 96 E8 08 42 D9 C5 0D C5 CD 08 AA C3 0B D0 19 42
 1F 23 0F C5 D9 EC A9 C3 00 70 1B 42 24 FB 1E C5
 03 98 A7 C3 B1 0F CA 41 F2 66 20 C5 71 AD A7 C3
 35 E6 B7 41 44 9C 23 C5 9F 5A AF C3 1E 44 7B 41
 82 9E 28 C5 A3 EA C3 C3 40 17 E5 40 8B 23 2C C5
 75 B3 DB C3 48 43 C5 40 1B 7B 2F C5 E4 99 FD C3
 00 40 C1 40 36 49 32 C5 07 44 15 C4 00 40 C1 40
 85 79 33 C5 51 49 32 C4 B0 7F C1 40 60 19 33 C5
 F8 F4 5D C4 7E 2A F3 40 00 1A 35 C5 AE 35 89 C4
 00 E0 07 41 00 00 00 00
end

:TRUCKS_TRAILERS_11340
hex
 D9 55 02 C5 E2 43 85 44 FD 53 5B 42 12 0F 11 C5
 D8 5C 85 44 67 FF 5A 42 3F A0 17 C5 49 D5 89 44
 2E 35 5B 42 59 29 1E C5 10 67 8A 44 29 EC 5A 42
 05 BD 21 C5 71 75 8C 44 AE C3 5A 42 D2 5D 24 C5
 7A CA 8F 44 93 B5 5A 42 43 46 26 C5 4D 4B 94 44
 9B A7 5A 42 84 98 27 C5 A6 58 9B 44 8F 49 5A 42
 EA 95 27 C5 7D 96 A6 44 24 0E 5B 42 4E 93 27 C5
 AC F8 C8 44 9C 10 80 42 98 94 27 C5 D1 26 E1 44
 D2 99 86 42 00 00 00 00
end

:TRUCKS_TRAILERS_11476
hex
 5E 07 D5 44 CC 98 2D C4 37 16 35 42 00 FA CE 44
 7D D7 7C C4 56 91 7A 42 31 1A CB 44 F9 07 99 C4
 31 B8 4C 42 7E 39 C8 44 00 B5 AB C4 FF 6F E4 41
 19 F9 C8 44 60 46 DA C4 20 13 DE 41 64 F0 CF 44
 B2 11 F8 C4 D5 6D B6 41 8F DB CC 44 94 9A 00 C5
 A6 D9 A2 41 A2 8A C1 44 FB 82 04 C5 C0 23 62 41
 4C AB AD 44 8D C5 05 C5 03 C0 48 41 3B B0 A8 44
 60 8B 08 C5 03 C0 48 41 0C 68 A7 44 54 2F 0B C5
 03 C0 48 41 9D 18 A8 44 48 C0 22 C5 03 C0 48 41
 40 56 AD 44 81 2C 26 C5 03 C0 48 41 45 A6 B4 44
 B2 52 27 C5 03 C0 48 41 32 37 02 45 F2 3A 27 C5
 00 C0 48 41 26 B3 05 45 DB 2C 25 C5 38 DD 48 41
 54 6A 07 45 AF BA 21 C5 00 C0 48 41 A1 A9 07 45
 9B 92 17 C5 00 C0 48 41 62 8A 09 45 42 B4 13 C5
 00 C0 48 41 89 6F 14 45 E3 ED 08 C5 00 C0 48 41
 98 B5 18 45 3D 59 07 C5 00 C0 48 41 E0 0C 2B 45
 D3 30 07 C5 00 A0 21 41 01 E8 2E 45 5F 45 05 C5
 00 A0 21 41 AF EE 30 45 70 4D 01 C5 00 A0 21 41
 BD 2F 31 45 4E 8B E3 C4 00 C0 20 41 69 4C 36 45
 DF E5 B5 C4 00 00 1E 41 D8 42 34 45 04 66 41 C4
 29 7E 1D 41 00 00 00 00
end

:TRUCKS_TRAILERS_11804
hex
 5E 51 29 45 6B 30 CA C4 11 2E 42 41 F0 83 24 45
 3D B5 C9 C4 0C 16 96 41 D6 05 12 45 06 47 C9 C4
 84 71 A8 40 55 56 0C 45 E0 C1 C5 C4 24 48 DE 3F
 AC 68 01 45 66 15 BD C4 DC F9 0F 40 26 71 FB 44
 6D 70 BC C4 46 8D 24 40 E2 65 E3 44 13 95 BC C4
 4E 98 9F 40 92 BF D1 44 F0 28 BA C4 07 D1 C3 41
 5F B7 CB 44 46 BA B3 C4 3C 85 DC 41 00 00 00 00
end

:TRUCKS_TRAILERS_11916
hex
 2F 18 58 44 40 E2 30 44 AB 97 2C 41 96 18 7D 44
 11 64 3E 44 EF D8 1C 41 4F AD 90 44 90 13 4F 44
 FD 98 17 41 D8 42 19 45 2D AC 52 44 00 80 B6 40
 A7 C4 1F 45 1D 34 59 44 9B 72 BB 40 1F CB 24 45
 62 5B 67 44 2A 5A C1 40 B2 32 28 45 3A AE 7A 44
 60 4E BB 40 3B D9 29 45 B1 32 8B 44 AE 69 D0 40
 FF DA 29 45 9F 39 10 45 85 77 C2 40 B8 C1 28 45
 61 7B 15 45 00 00 D6 40 E4 75 25 45 7F B1 1B 45
 E0 E0 CB 40 8E 8C 21 45 BC 99 1F 45 A3 04 9B 40
 34 1B 1B 45 3F F3 22 45 99 D3 84 40 5B 05 13 45
 26 FF 23 45 80 AA BB 40 B3 34 0D 45 F3 6B 23 45
 F9 51 BC 40 26 20 DF 44 22 9E 1B 45 00 80 D8 40
 F9 79 C7 44 5E F9 19 45 CE D5 B8 40 EC 3E A2 44
 2F 0A 19 45 F0 BE BF 40 75 07 98 44 CB 5F 12 45
 5E 22 B9 40 0C 32 96 44 9B C1 0A 45 42 73 B8 40
 00 00 00 00
end

:TRUCKS_TRAILERS_12160
hex
 86 86 56 44 C1 47 24 45 76 E3 27 41 D8 0E 8E 44
 A2 CE 19 45 70 F9 1B 41 B4 2D 99 44 33 C6 16 45
 FB 1F 1D 41 B3 23 A5 44 B8 87 0F 45 DA D8 46 41
 04 40 A4 44 FF 85 0D 45 3A 2A 2D 41 B3 FF 85 0D
 45 3A 2A 2D 41 B3 46 A3 44 29 DE 0B 45 00 20 1D
 41 0F 25 A1 44 C3 4A 0A 45 24 0F 19 41 64 33 9A
 44 6E DA 07 45 00 80 B7 40 E0 0C 98 44 C6 D4 00
 45 7B 39 BA 40 A4 02 98 44 C9 6F 82 44 C0 4F B9
 40 84 5C 97 44 79 03 73 44 0E 41 C6 40 7A 3F 92
 44 AD 12 59 44 C6 6A 33 41 00 00 00 00 04 01 DB
 44 6C 9D 0B 44 E4 94 C4 41 93 79 DE 44 5E EC 25
 44 04 B3 85 41 F0 BB E0 44 DC 49 47 44 8B 77 22
 41 DF E3 E0 44 82 B2 12 45 2D B7 B5 40 A7 EE DC
 44 5F 89 19 45 CC C8 E3 40 00 00 00 00 1E A9 FC
 C3 19 E1 14 44 00 30 80 41 3C 78 B7 C3 D0 B9 0C
 44 C8 17 77 41 CA 06 6A C3 BB 1F 0D 44 20 9E 6E
 41 AA 44 63 C2 1F 0D 16 44 20 01 41 41 BF 83 3C
 43 6D FD 35
end
0044:   // (float) 
hex
 A9 40 53 C0 A5 43 7D 90 3F 44 00 00 A9 40 F3 50
 E5 43 E0 B4 37 44 4C 76 8E 40 13 80 10 44 E4 E6
 28 44 F2 80 3F 40 95 3B 42 44 35 B0 28 44 2E BF
 26 41 4F 20 73 44 B7 EB 3A 44 F3 1F 1D 41 00 00
 00 00 80 1E 69 44 D0 10 22 45 BC 2C 17 41 7D 68
 4C 44 FA A3 24 45 7C 00 43 41 EC AA 41 44 0F 77
 24 45 F0 A0 75 41 4F 97 2F 44 3E D4 21 45 A4 8A
 C6 41 A5 D8 20 44 00 30 1D 45 4C 83 F3 41 45 50
 1D 44 DD 85 19 45 F3 E7 EF 41 15 5C 24 44 91 1C
 0F 45 EF 27 CB 41 A4 9F 25 44 A7 32 04 45 D5 B4
 84 41 0B AF 25 44 69 83 F2 44 A0 51 92 40 00 00
 00 00 A2 1D 9A C4 28 17 33 C5 D8 05 83 42 D2 C2
 65 C4 95 82 32 C5 B6 71 85 42 B8 E8 3D C4 45 68
 2E C5 5B 3E 93 42 1D 65 D5 C2 0A 5B 32 C5 C5 D8
 19 42 E9 F6 7D C1 81 DE 2A C5 35 10 21 42 13 EE
 39 C2 D5 17 1F C5 0A 2D 24 42 1E 21 96 C3 D1 7A
 09 C5 2C 7D EB 41 70 C5 85 C3 FC 7C CC C4 16 FA
 6D 41 5F 6E A8 42 09 FB 9F C4 53 01 4D 41 00 00
 00 00 C0 23 35 C5 A6 9C 89 C4 00 E0 07 41 2F B1
 37 C5 0E 83 B0 C4 D0 B3 21 41 02 66 34 C5 63 A4
 E4 C4 08 E2 07 42 17 C9 30 C5 DE 61 F6 C4 A7 3F
 15 42 10 E7 27 C5 6A BE FE C4 35 05 24 42 38 75
 1E C5 4B 58 08 C5 22 A0 EB 41 33 48 17 C5 E7 FD
 1F C5 15 7C 4F 42 6B 5D 07 C5 93 23 27 C5 10 A1
 57 42 BE 05 DF C4 FD FA 21 C5 9E D2 52 42 5D A7
 B3 C4 4D 89 34 C5 A5 61 3C 42 05 2A 9C C4 45 7E
 33 C5 FE A3 7F 42 89 60 90 C4 3C B0 32 C5 00 70
 85
end
0042:    // Note: the incorrect math opcode was used here
0000: NOP 

:TRUCKS_TRAILERS_12868
hex
 40 C2 F5 C4 F7 F6 9E C4 31 FF 77 42 A7 D8 F1 C4
 C9 BB A5 C4 31 FF 77 42 DF B2 EC C4 74 B2 A6 C4
 31 FF 77 42 A7 AB EA C4 45 B7 A4 C4 1F EF 0F 42
 D4 F1 EA C4 71 BB A1 C4 F4 99 19 42 8B ED ED C4
 3D 2B 9B C4 1D 9A 1A 42 44 DF EE C4 2A A7 8E C4
 2A 85 15 42 0B 20 EE C4 95 1D 7C C4 AA FE 19 42
 00 00 00 00
end

:TRUCKS_TRAILERS_12968
hex
 97 69 D3 44 58 2B 43 C4 00 07 5A 42 59 13 D6 44
 4C 74 18 C4 01 AE 18 42 46 94 D4 44 08 5A ED C3
 5E 57 01 42 D6 37 D1 44 6A 58 AB C3 E1 D3 29 42
 7F 8F CF 44 97 DC 8E C2 5B DC 0B 42 5D F8 C8 44
 0E F6 A5 42 FD 90 12 42 8D 46 DE 44 7C E9 23 44
 34 32 8A 41 00 00 00 00
end

:TRUCKS_TRAILERS_13056
hex
 26 A6 C7 44 E4 D8 9A 43 82 A5 9D 41 45 48 DC 44
 7B 4C 84 43 7F 2A 8C 41 F9 5E F5 44 C7 DC 96 43
 98 49 01 42 48 F3 04 45 A6 AB 9E 43 3F 64 03 42
 9F AE 1E 45 4D 73 96 43 DF 66 E1 41 82 E6 23 45
 AD AC 9E 43 80 2E FF 41 A7 11 29 45 4E 32 91 43
end
  Garage.IsClosed(66)
hex
 A9 97 2B 45 D7 48 73 43 B7 80 C5 41 8B E7 2C 45
 96 B8 33 43 79 40 A4 41 6F D4 2C 45 C3 97 E3 C0
 4D 97 05 42 8E 03 2B 45 B2 D4 3C C3 22 72 EE 41
 25 05 29 45 79 27 A2 C3 94 46 DC 41 3A 1E 34 45
 39 7C 0D C4 B7 0B 32 41 A8 44 34 45 97 7E 49 C4
 BE 02 1E 41 00 00 00 00
end

:TRUCKS_TRAILERS_13228
hex
 9F 60 06 C4 20 6B 16 44 FE 33 7A 41 00 E3 C5 C3
 23 57 0B 44 20 8A 7C 41 20 27 8C C3 F9 BA 09 44
 92 4C 73 41 13 44 07 C3 DD 06 0E 44 8B 6B 6E 41
 7D 44 A0 C1 E0 A6 17 44 6D DA 18 41 00 00 00 00
 EB 93 27 C5 8A AD CD 44 98 01 83 42 A4 8F 27 C5
 A9 D0 E8 44 A4 45 84 42 EE A6 27 C5 16 5A 08 45
 4B B4 5E 42 91 EF 2B C5 30 F1 11 45 54 D1 8F 42
 DA 70 2B C5 3B 0F 1B 45 93 7F B0 42 E1 C7 26 C5
 46 68 23 45 64 3C A5 42 D2 0D 0F C5 4A 1C 26 45
 B1 50 5B 42 09 72 F8 C4 78 B4 20 45 5C EC 52 42
 12 EB EE C4 E5 1B 17 45 76 F7 4C 42 45 8A E7 C4
 87 6E 0E 45 98 CF E1 41 5C 47 D0 C4 FE FD 04 45
 F5 BC 94 41 DE E5 C6 C4 EC 48 DF 44 73 F2 68 41
 A5 ED BA C4 7C 0C D8 44 9E AE 16 41 21 85 9D C4
 5A CD D4 44 7C 69 72 41 A8 8E 8D C4 59 8F C9 44
 49 58 BA 41 43 07 89 C4 1F 02 B3 44 24 9E D6 41
 8B B7 65 C4 06 6F 8F 44 D5 FD EB 41 08 37 53 C4
 F5 C9 73 44 1C C2 BE 41 5E 8A 47 C4 10 4D 3C 44
 FD C9 88 41 00 00 00 00
end

:TRUCKS_TRAILERS_13524
hex
 8F 72 98 C4 43 FB 7D 44 DA F4 28 42 79 0C 8B C4
 A9 6F 8D 44 0A 6D 12 42 94 7A 83 C4 BF 3E 94 44
 DC 8C 17 42 D0 69 7B C4 B6 43 94 44 EE 16 FC 41
 7F DC 73 C4 BF 0A 8F 44 89 92 EC 41 E8 20 69 C4
 6B 15 81 44 0A C0 AE 41 6D F2 5B C4 DB C1 4B 44
 86 9D 96 41 3D 7A 4B C4 6E E4 35 44 2A BE 8C 41
 9A 49 F6 C3 5D BA 13 44 08 27 80 41 00 00 00 00
end

 

 

Link to comment
Share on other sites

bad chance

 

try following:

open the script with hex editor and edit the script name at the beginning

change TRUCKS_TRAILERS into TRUCKS

 

then try to terminate IT by another script with opcode 0ABA:

0ABA: end_custom_thread_named 'TRUCKS' 

 

Link to comment
Share on other sites

23 minutes ago, ZAZ said:

change TRUCKS_TRAILERS into TRUCKS

you mean like this??

 

spacer.png

Link to comment
Share on other sites

6 hours ago, ZAZ said:

thread name must be valid (max. 7 character)

I am not questioning your knowledge, but are you sure about that? I am afk now, can't check it - I thought cleo will just cut everything starting from the 8th character. Like 1234567890.s

will be cut to 1234567. And 1234567 will be enough to be used in 0459 opcode.

Link to comment
Share on other sites

11 hours ago, vladvo said:

1234567890.s

The name of the cleo script on disk can be unrelated to the name of the running/cleo script in memory (as named by opcode 03A4) unless the author decides to make the names match.

 

11 hours ago, vladvo said:

will be cut to 1234567.

Actually, no. There's room for 8 characters and all can be used. I just checked for a cleo script.

 

11 hours ago, vladvo said:

1234567 will be enough to be used in 0459 opcode.

I'm not sure about the standard running scripts, I'm not up to testing on a custom main, but this suggestion does not work with cleo scripts. I'm expecting a similar conflict with 0459.

 

In the example below, both detections work if the script name is shortened to 7 characters, but not as written.

Spoiler
{$CLEO .cs}
Script_Name 'NameTest'
wait 3000

if
  0AAA: 0@ = get_script_struct_named "NameTest"
then
  0ace: "NameTest found"
  wait 2000
end
if
  0AAA: 0@ = get_script_struct_named 'NameTes'
then
  0ace: "NameTes found"
  wait 2000
end

0ace: "NameTest complete"
0ABA: terminate_all_custom_scripts_with_this_name "NameTest"
0ABA: terminate_all_custom_scripts_with_this_name 'NameTes'
while true
  wait 1000
  0109: player $PLAYER_CHAR money += 1
end
0A93: terminate_this_custom_script

 

 

Edited by OrionSR
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
  • 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.