W4LK1NG Posted October 25, 2017 Share Posted October 25, 2017 I want to make the Player say something in the chat without using OutputChatBox because my server has a system of tags, is it possible to use ExecuteCommandHandler to do that? It would be like ExecuteCommandHandler ("Say", Source, "Hello World") Link to comment
King12 Posted October 25, 2017 Share Posted October 25, 2017 Note: You can only execute commands created by Lua. You cannot execute MTA harcoded commands due to security reasons. From the wiki. Link to comment
Moderators IIYAMA Posted October 26, 2017 Moderators Share Posted October 26, 2017 (edited) You might be able to do it with: https://wiki.multitheftauto.com/wiki/TriggerEvent triggerEvent("onPlayerChat", player, "HI, I AM YOUR MOTHER!", 0) It is a kind of hack for your tag system, but should be possible. onPlayerChat parameters: string message, int messageType Edited October 26, 2017 by IIYAMA 1 1 Link to comment
W4LK1NG Posted October 27, 2017 Author Share Posted October 27, 2017 23 hours ago, IIYAMA said: Você pode conseguir isso com: https://wiki.multitheftauto.com/wiki/TriggerEvent É um tipo de hack para seu sistema de tag, mas deve ser possível. Parâmetros onPlayerChat: Thank you <3 On 25/10/2017 at 21:16, King12 said: Nota: Você só pode executar comandos criados pela Lua. Você não pode executar comandos MTA Harcoded por razões de segurança. Da wiki. Ok, Thank you Link to comment
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