garrysmod
garrysmod copied to clipboard
Add player.SendMsg
An alternative of https://github.com/Facepunch/garrysmod/pull/1880 for dynamic text. Relies on https://github.com/Facepunch/garrysmod/pull/1881. Supersedes https://github.com/Facepunch/garrysmod/pull/1333 - I closed that one because people should really be using a function like that added in #1880 but I have now accepted that addons will not stop adding their own serverside chat.AddText variants until one is provided for them. This one is also far more network efficient.
Marked as WIP until I fix the styling, add support for non-color/string objects, and have a computer to test.
The current implementation ignores the alpha since the default chatbox doesn't use it. Are there any custom ones that override chat.AddText and use the alpha?