'LinKin Posted April 28, 2014 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. Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
Moderators IIYAMA Posted April 28, 2014 Moderators Posted April 28, 2014 https://wiki.multitheftauto.com/wiki/GuiSetInputMode Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Ab-47 Posted April 28, 2014 Posted April 28, 2014 guiSetInputMode("no_binds_when_editing") Use that ^ And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
Tails Posted April 28, 2014 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. Discord: its.tails
Moderators IIYAMA Posted April 28, 2014 Moderators Posted April 28, 2014 @ Tails. input mode only works for the gui's created by the same script. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Karuzo Posted April 28, 2014 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
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