CLEO Help Press key near veh

CLEO related
Status
Not open for further replies.

pai1ne13

Active member
Joined
Jan 2, 2019
Messages
59
Reaction score
4
I want when i am near a vehicle , the cleo need to press auto key "72"
Code:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0
0@ = $PLAYER_ACTOR car

IF OR
00ED:   actor $PLAYER_ACTOR sphere 0 near_point 1623.0679 688.2296 radius 4.0 4.0 on_foot

THEN               
        0AF9: samp say_msg "/getmats"
        if
        0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
        then
        key_down 72
 
    END
      end
 
Status
Not open for further replies.
Top