'LinKin Posted April 28, 2014 Share Posted April 28, 2014 Hello, For example if I type 'p' the admin panel opens, if I type 't' the chatbox starts to accept input, and the same with some other keys/binds How can I disable the binds when I'm typing something inside an edit box? Thanks. Link to comment
Moderators IIYAMA Posted April 28, 2014 Moderators Share Posted April 28, 2014 https://wiki.multitheftauto.com/wiki/GuiSetInputMode Link to comment
Ab-47 Posted April 28, 2014 Share Posted April 28, 2014 guiSetInputMode("no_binds_when_editing") Use that ^ Link to comment
Tails Posted April 28, 2014 Share Posted April 28, 2014 The function doesn't always work! Sometimes the admin panel stays active when typing into an edit box but other times it doesn't. Most of the times it doesn't work. Link to comment
Moderators IIYAMA Posted April 28, 2014 Moderators Share Posted April 28, 2014 @ Tails. input mode only works for the gui's created by the same script. Link to comment
Karuzo Posted April 28, 2014 Share Posted April 28, 2014 You could just do an if-statement in all panels which open, and only let them open if the player has the loggedin elementdata for example 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