dzek (varez) Posted February 19, 2010 Posted February 19, 2010 (edited) addEventHandler("onClientChatMessage", getRootElement(), function() cancelEvent() end) this dont work. its not possible to cancel this event? Edited February 21, 2010 by Guest Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Andre9977 Posted February 19, 2010 Posted February 19, 2010 Try this: addEventHandler("onClientChatMessage", getRootElement(), cancelEvent)
Gamesnert Posted February 19, 2010 Posted February 19, 2010 If I remember correctly, this event indeed can't be canceled. Your best way of canceling it would be onPlayerChat. Projects: Slothbot | Maximap
dzek (varez) Posted February 20, 2010 Author Posted February 20, 2010 but im trying to disable own text when written on chat. if you write something its added clientside on the chat .. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Dark Dragon Posted February 20, 2010 Posted February 20, 2010 well if it is in your own script you can simply use an if else statement right there, can't you? Loads of fun for free! Also a lot of fun for free!
dzek (varez) Posted February 21, 2010 Author Posted February 21, 2010 erm,i dont understand your question i cannot cancel the event, if else dont help me in any way Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Gamesnert Posted February 21, 2010 Posted February 21, 2010 erm,i dont understand your question He means that if you output text (for instance with outputChatBox) you can check whether or not to output it at that time, instead of in an event. For as far as I can understand. Projects: Slothbot | Maximap
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