CLEO Help Cleo Right Click On player to send a command.

CLEO related

stas

Member
Joined
Nov 20, 2018
Messages
16
Solutions
1
Reaction score
0
Hello, I got this cleo code that works but the problem is that i can't right click while I'm in a vehicle to send this command, can someone help? It only works while on foot and I right click the player.

{$CLEO .cs}
0000:


REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

WHILE TRUE
WAIT 0

IF AND
key_down 2 {Right Mouse}
key_down 66 {B Key}
THEN
IF 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
THEN
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
say "/sellgun %d" 1@
wait 2000 /// Anti spam
END
END

END /// END WHILE TRUE
 
Top