Yeleha Posted May 31, 2021 Posted May 31, 2021 (edited) I have a simple script to show the cursor on bind, but I don't want any binds ( except the bind to switch the cursor ) to be usable when it's shown. function toggleCursor() if (isCursorShowing()) then showCursor(false) guiSetInputMode('allow_binds') else showCursor(true, true) guiSetInputMode('no_binds') end end bindKey("m", "down", "togglecursor") This works but the M-key is not usable. Edited May 31, 2021 by Derbo
Yeleha Posted June 5, 2021 Author Posted June 5, 2021 On 02/06/2021 at 15:59, srslyyyy said: Have you tried using onClientKey event instead? Can't figure out how to use it. Can you complete the script for me please?
sacr1ficez Posted June 5, 2021 Posted June 5, 2021 2 hours ago, Derbo said: Can't figure out how to use it. Can you complete the script for me please? We are here to help, not to do job for you. https://wiki.multitheftauto.com/wiki/OnClientKey See examples to understand how this event works.
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