Mark Gamer Posted June 14, 2017 Posted June 14, 2017 how can i do that when i press any key open the chat box and write any word in it for ex. when i press x then chat box open and write ' You Pressed X'
PeaceBomb99 Posted June 14, 2017 Posted June 14, 2017 addEventHandler("onClientKey", root, function(key, pressed) if pressed then outputChatBox(key) end end ) Or for characters you can try addEventHandler("onClientCharacter", root, function(c) outputChatBox(c) end )
Mark Gamer Posted June 14, 2017 Author Posted June 14, 2017 37 minutes ago, eggman said: addEventHandler("onClientKey", root, function(key, pressed) if pressed then outputChatBox(key) end end ) Or for characters you can try addEventHandler("onClientCharacter", root, function(c) outputChatBox(c) end ) not outputchatbox i want to open the chat box like when player press "t" and write the char in it
Mark Gamer Posted June 15, 2017 Author Posted June 15, 2017 2 hours ago, pa3ck said: You will find the solution in this topic: how can i put words in it ?
PeaceBomb99 Posted June 15, 2017 Posted June 15, 2017 I'm pretty sure you can't put words in the typing field of the chatbox. You must create your own chatbox if you want to do that kind of stuff.
pa3ck Posted June 16, 2017 Posted June 16, 2017 10 hours ago, #BrosS said: bindKey ( ......., "chatbox"... .......... ... And how exactly is that going to manually put words in the text input of the chatbox?
#BrosS Posted June 16, 2017 Posted June 16, 2017 2 hours ago, pa3ck said: And how exactly is that going to manually put words in the text input of the chatbox? Have you even try it Don't talk before trying bro
pa3ck Posted June 16, 2017 Posted June 16, 2017 6 minutes ago, #BrosS said: Have you even try it Don't talk before trying bro I don't think you understand what he wants, he wants to manually insert text into the chatbox. Not like "GlobalChat: " or "LocalChat: " but something along the lines of: "GlobalChat: My name is " then you would type your name.
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