CLEO Help Cleo Repair HELP

CLEO related

312321321

Member
Joined
Apr 17, 2023
Messages
17
Reaction score
0
Hey, I have the code for 0.3.7 version but it doesn't work, can someone change it for 0.3.7 r4 and edit keybind to SHIFT + G, thank you!


0000: NOP

:NONAME_2
0001: wait 0 ms
00D6: if and
not SAMP.ChatInputOpened()
00DF: actor $PLAYER_ACTOR driving
0AB0: key_pressed 190
004D: jump_if_false @NONAME_2
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0A30: repair_car 0@
0AD1: show_formatted_text_highpriority "AUTO OPRAVENE" time 1000
0002: jump @NONAME_2
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
460
Solutions
9
Reaction score
166
Location
Poland
PHP:
{$CLEO .cs}
0000: 
            
WHILE TRUE
WAIT 0

IF AND
0AB0: key_pressed 16 // LShift
0AB0: key_pressed 71 // G
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF: actor $PLAYER_ACTOR driving
        THEN 
            03C0: 0@ = actor $PLAYER_ACTOR car
            0A30: repair_car 0@
            0AD1: "AUTO OPRAVENE" 1000
        END
    END
    WAIT 1000   
END

END
0A93: terminate_this_custom_script
 

312321321

Member
Joined
Apr 17, 2023
Messages
17
Reaction score
0
PHP:
{$CLEO .cs}
0000:
           
WHILE TRUE
WAIT 0

IF AND
0AB0: key_pressed 16 // LShift
0AB0: key_pressed 71 // G
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF: actor $PLAYER_ACTOR driving
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car
            0A30: repair_car 0@
            0AD1: "AUTO OPRAVENE" 1000
        END
    END
    WAIT 1000  
END

END
0A93: terminate_this_custom_script
Appreciate buddy.
 
Top