CLEO Help Always fail to change the contents of the Cleo file

CLEO related

lampud1sko

Member
Joined
Jun 20, 2021
Messages
5
Reaction score
0
Location
Indonesia,Jakarta
Here's the contents of the cleo script code like this:
// This file was decompiled using SASCM.ini published on 2021-01-30
{$CLEO .cs}

script_name "REPAIR"

:REPAIR_10
wait 0
if and
is_key_pressed 16
is_key_pressed 49
Actor.Driving($PLAYER_ACTOR)
jf @REPAIR_10
0@ = Actor.CurrentCar($PLAYER_ACTOR)
1@ = Car.Health(0@)
if
not 1@ > 1000.0
jf @REPAIR_10
0A30: repair_car 0@
wait 100
0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset -1.5 0.0 0.0
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 1@ 2@ 3@
wait 1000
Car.RemoveReferences(0@)
jump @REPAIR_10
hex
52 1B
end

I often play on the Roleplay server where on the server I often play /dl the initial vehicle that has not been changed is 1000.0 but if it has been changed the vehicle can be up to 2000.0 /dl.
My problem is, I got the cleo from youtube, but when I use it it can only get up to 1000.0 /dl even though I have changed the shape of the contents of the cleo file. Can anyone here explain why that is?
 

kenpeo

Active member
Joined
May 10, 2014
Messages
28
Reaction score
3
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'REPAIR'

:REPAIR_11
wait 100
if
   Player.Defined($PLAYER_CHAR)
else_jump @REPAIR_38
jump @REPAIR_45

:REPAIR_38
jump @REPAIR_11

:REPAIR_45
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 55
else_jump @REPAIR_111
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 1000
0ACD: show_text_highpriority '~Y~1K' time 1000
Car.RemoveReferences(1@)
wait 200
          
:REPAIR_111
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 56
else_jump @REPAIR_999
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 10000
0ACD: show_text_highpriority '~Y~10K' time 1000
Car.RemoveReferences(1@)
wait 200



:REPAIR_999
jump @REPAIR_45
 

lampud1sko

Member
Joined
Jun 20, 2021
Messages
5
Reaction score
0
Location
Indonesia,Jakarta
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'REPAIR'

:REPAIR_11
wait 100
if
   Player.Defined($PLAYER_CHAR)
else_jump @REPAIR_38
jump @REPAIR_45

:REPAIR_38
jump @REPAIR_11

:REPAIR_45
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 55
else_jump @REPAIR_111
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 1000
0ACD: show_text_highpriority '~Y~1K' time 1000
Car.RemoveReferences(1@)
wait 200
         
:REPAIR_111
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 56
else_jump @REPAIR_999
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 10000
0ACD: show_text_highpriority '~Y~10K' time 1000
Car.RemoveReferences(1@)
wait 200



:REPAIR_999
jump @REPAIR_45

Did you make it yourself or help me to find a problem I can't solve?
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Did you make it yourself or help me to find a problem I can't solve?

As far as I remember, 0A30: repair_car sets the vehicle health to 1000.
Since the server you play on can go up to 2000, you need to output a custom value with Car.Health.

You could also use 03F5 to make the car undamageable.
 
Last edited:

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'REPAIR'

:REPAIR_11
wait 100
if
   Player.Defined($PLAYER_CHAR)
else_jump @REPAIR_38
jump @REPAIR_45

:REPAIR_38
jump @REPAIR_11

:REPAIR_45
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 55
else_jump @REPAIR_111
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 1000
0ACD: show_text_highpriority '~Y~1K' time 1000
Car.RemoveReferences(1@)
wait 200
        
:REPAIR_111
wait 0
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 56
else_jump @REPAIR_999
1@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.Health(1@) = 10000
0ACD: show_text_highpriority '~Y~10K' time 1000
Car.RemoveReferences(1@)
wait 200



:REPAIR_999
jump @REPAIR_45

PHP:
0A30: repair_car 1@
0224: set_car 1@ health_to 2000
 
Top