xXMADEXx Posted January 29, 2013 Posted January 29, 2013 How can i make it, so that if the player is typeing in the edit, that if they press "T" or "U" it wont go into the chat? So, like it unbinds everything if you're using the edit. ed_msg = guiCreateEdit(89,138,320,38,"",false,rog_ucp_sms) The Ultimate Lua Tutorial! | MTA PHP SDK
xXMADEXx Posted January 29, 2013 Author Posted January 29, 2013 guiSetInputEnabled I can't really figure out, how that function works The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted January 29, 2013 Posted January 29, 2013 When you show the GUI, set the input to go to GUI. guiSetInputEnabled ( true ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Blaawee Posted January 29, 2013 Posted January 29, 2013 i think you should to use this function guiSetInputMode( 'no_binds_when_editing' )
xXMADEXx Posted January 30, 2013 Author Posted January 30, 2013 So, like this? ed_msg = guiCreateEdit(89,138,320,38,"",false,rog_ucp_sms) guiSetInputMode("no_binds_when_editing") The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted January 30, 2013 Posted January 30, 2013 Test it and see if it works? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted January 30, 2013 Author Posted January 30, 2013 Didn't work. The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted January 30, 2013 Posted January 30, 2013 Try enabling it when you show the GUI. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted January 30, 2013 Author Posted January 30, 2013 THANK YOU, CASTILLO The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted January 30, 2013 Posted January 30, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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