trwygon Posted May 20, 2016 Share Posted May 20, 2016 (edited) [sOLVED] Hey, (I am using ScriptHookVDotNet) I am making a script and i was interested to know if I could know if a player uses the Mouse Buttons (LButton, MButton, RButton, BrowserBack, etc...) I've tried this(because I'm stupid): if (key == Keys.LButton) { } wich didn't work because onKeyup only listens to keyboard keys i guess.... Any ideas? Edited May 21, 2016 by trwygon Link to comment Share on other sites More sharing options...
alloc8or Posted May 20, 2016 Share Posted May 20, 2016 (edited) Edit: Oh sry, thought you wanted to get current input mode. Edited May 20, 2016 by Unknown_Modder Link to comment Share on other sites More sharing options...
aimless Posted May 20, 2016 Share Posted May 20, 2016 if (Function.Call<bool>(Hash.IS_CONTROL_JUST_PRESSED, 2, 329)) { } 241 and 242 for the mouse wheel up and down. 329 - LMouseBtn 330 - 331 - RMouseBtn I could not find the middle button. trwygon 1 Link to comment Share on other sites More sharing options...
jedijosh920 Posted May 21, 2016 Share Posted May 21, 2016 if (Game.IsControlJustPressed(0, GTA.Control.Attack)) Make sure you call it OnTick. trwygon 1 Link to comment Share on other sites More sharing options...
trwygon Posted May 21, 2016 Author Share Posted May 21, 2016 They both work ! Thx for quick replies! jedijosh920 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now