CLEO Help How to make this Script only work when player actor standing at nearest vehicle?

CLEO related
Status
Not open for further replies.

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
Did you guys know how to make this Script only work when player actor standing at nearest vehicle? Help me..

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "EasyLockVehicle"

:EasyLockVehicle_19
wait 50
if
key_down 97
else_jump @EasyLockVehicle_19
wait 100
say "/pvlock"
jump @EasyLockVehicle_19
 
Last edited:

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0661: NOP "Mod Made by: .."


WHILE TRUE
    WAIT 0
    IF
    0AB0: key_pressed 97
    THEN
        0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 33@   //get nearst car
        IF
        056E:   car 0@ defined // check if it exsists
        THEN
            0AF9: samp say_msg "/pvlock"   
            repeat
                wait 0
            until 8ab0: not key pressed 97  // anti spam
        END       
    END
END
 

ha.sh

Active member
Joined
Nov 14, 2018
Messages
66
Reaction score
0
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0661: NOP "Mod Made by: .."


WHILE TRUE
    WAIT 0
    IF
    0AB0: key_pressed 97
    THEN
        0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 33@   //get nearst car
        IF
        056E:   car 0@ defined // check if it exsists
        THEN
            0AF9: samp say_msg "/pvlock"  
            repeat
                wait 0
            until 8ab0: not key pressed 97  // anti spam
        END      
    END
END
Thanks bro. But, is not working.
 
Status
Not open for further replies.
Top