Simi23 Posted August 1, 2017 Share Posted August 1, 2017 Hello! There is a command: guiSetInputMode() I need it for an input box, but that box is not mta's gui, it's drawn by dx. So if I want to remove the last character, I need to use a bind for backspace. So I want to disable all the binds except that backspace. Can I do that? Link to comment
Dimos7 Posted August 1, 2017 Share Posted August 1, 2017 guiSetInputMode("no_binds_when_editing") Link to comment
Simi23 Posted August 1, 2017 Author Share Posted August 1, 2017 12 minutes ago, Dimos7 said: guiSetInputMode("no_binds_when_editing") I can still use binds, because as i said, its not a gui editbox. I've made it with dx. Link to comment
Simi23 Posted August 1, 2017 Author Share Posted August 1, 2017 (edited) And if I use no binds, how can I use backspace to delete the last character? ~UPDATE~ Found it! I just need to use addEventHandler("onClientKey", getRootElement(), function) Edited August 1, 2017 by Simi23 Link to comment
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