Team Spartan Cookies & Milk Forums
chat.listen() - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: chat.listen() (/thread-3100.html)



chat.listen() - The17thDoctor - 15-08-2019

I noticed that using chat.listen() while returning true in the callback doesnt work with "/" or "!" prefixes


RE: chat.listen() - Person8880 - 18-08-2019

What about it doesn't work? Anything that starts with "/" or "!" in the chat is automatically hidden, returning true in the callback just indicates the text is consumed (and thus hides it from other player's Starfall chips, assuming it's your own chat).


RE: chat.listen() - The17thDoctor - 18-08-2019

(18-08-2019, 10:24 AM)Person8880 Wrote: returning true in the callback just indicates the text is consumed (and thus hides it from other player's Starfall chips, assuming it's your own chat).

This part when using prefixes such as "!" or "/" does not work, it hides the chat but does not consume it and thus not hiding it from other player's Starfalls.


RE: chat.listen() - Person8880 - 18-08-2019

(18-08-2019, 02:31 PM)тѕсм.The17thDoctor Wrote:
(18-08-2019, 10:24 AM)Person8880 Wrote: returning true in the callback just indicates the text is consumed (and thus hides it from other player's Starfall chips, assuming it's your own chat).

This part when using prefixes such as "!" or "/" does not work, it hides the chat but does not consume it and thus not hiding it from other player's Starfalls.
Who did you try this with?


RE: chat.listen() - The17thDoctor - 18-08-2019

Ok, so I retried with another player to help me and it seems im just being stupid, sorry for wasting your time.

EDIT : Of course it wont hide it from your own SFs.