Jump to content

guiSetInputMode exception


Simi23

Recommended Posts

Posted

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?

Posted

 

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.

Posted (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 by Simi23

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...