This can be done in very few lines in ahk , without using cleo:
Key: R
Off/on : F2
_________________________________
#ifwinactive,GTA:SA:MP
~r::
Getkeystate,state,RButton
If state=D
return
mouseclick, wheelup
sleep 20 ; or any sleep you want
mouseclick, wheeldown
return
#ifwinactive
~F2::
suspend
return