pa3ck Posted December 15, 2013 Posted December 15, 2013 Hi there, I want to make 2 more chat boxes, one for the right hand side and one goes to the bottom of the screen. What functions / events will I need? The hardest part is that, when a new chat line comes up, the first one should disappear... Just like in the default chat box. What would be the easiest way?
xXMADEXx Posted December 15, 2013 Posted December 15, 2013 I guess these: dxDrawText onClientRender -- event bindKey To do only a certain amount of messages, when the player makes a chat, you'll need to insert it into a table. You can check the number of indexes in the table, and if there are too many, remove the first index. The Ultimate Lua Tutorial! | MTA PHP SDK
DNL291 Posted December 15, 2013 Posted December 15, 2013 + onClientChatMessage addCommandHandler unbindKey getChatboxLayout Please do not PM me with scripting related question nor support, use the forums instead.
Dealman Posted December 15, 2013 Posted December 15, 2013 Or if you don't want to use DX, you can use those functions; textCreateDisplay textCreateTextItem textDestroyDisplay textDestroyTextItem textDisplayAddObserver textDisplayAddText textDisplayRemoveObserver textDisplayRemoveText textItemGetColor textItemGetPosition textItemGetPriority textItemGetScale textItemGetText textItemSetColor textItemSetPosition textItemSetPriority textItemSetScale textItemSetText textDisplayGetObservers textDisplayIsObserver If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
PaiN^ Posted December 15, 2013 Posted December 15, 2013 You should use a table so you can delete the first line in the chat once a new one comes up . " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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