Soul Posted April 11, 2019 Posted April 11, 2019 (edited) As the title states. I've read the GTAN wiki and theres an attribute for the .ChatMessage event ([DisableDefaultChat]) but it also says its not implemented yet, waiting to be released on 0.4. So, as of right now. Is there a way to prevent the default chat messages from behaving the way they do? (The message will be sent to everyone wether you want to or not). Cheers Edited April 11, 2019 by Soul typos
MiMIMi Posted April 11, 2019 Posted April 11, 2019 Use this Quote NAPI.Server.SetGlobalServerChat(bool value)
Soul Posted April 11, 2019 Author Posted April 11, 2019 Thank you, this is what I was looking for. ❤️
hubba Posted April 11, 2019 Posted April 11, 2019 3 hours ago, Soul said: Thank you, this is what I was looking for. ❤️ no proplem 😀 2 1
Nutter Posted February 22, 2023 Posted February 22, 2023 On 2/21/2023 at 7:39 PM, ruxxay said: How to do that in JS? You don't need it for Node.JS gamemodes. Chat messages are not broadcasted to all players by default, you need to do that yourself using the playerChat event.
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