garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Add player.SendMsg

Open Kefta opened this issue 2 years ago • 1 comments

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.

Kefta avatar Mar 07 '22 18:03 Kefta

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?

Kefta avatar Mar 07 '22 21:03 Kefta