Garry's Mod Wiki

Revision Difference

Global.SendUserMessage#549831

<function name="SendUserMessage" parent="Global" type="libraryfunc"> <description> <deprecated>This uses the <page>umsg</page> internally, which has been deprecated. Use the <page>net</page> instead.</deprecated>⤶ Send a usermessage⤶ <note>Useless on client, only server can send info to client.</note>⤶ Send a usermessage ⤶ <deprecated>⤶ This uses the <page>umsg</page> internally, which has been deprecated. Use the <page>net</page> instead. </deprecated>⤶ ⤶ <note>⤶ Using this clientside seems to cause the client to send the UserMessage to itself, which then get blocked internally. ⤶ only server can send info to client.⤶ </note>⤶ </description> <realm>Shared</realm> <args> <arg name="name" type="string">The name of the usermessage</arg> <arg name="recipients" type="any">Can be a <page>CRecipientFilter</page>, <page>table</page> or <page>Player</page> object.</arg> <arg name="args" type="vararg">Data to send in the usermessage</arg> </args> </function>