Garry's Mod Wiki

Revision Difference

Global.SendUserMessage#511265

<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>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="name" type="string">The name of the usermessage</arg>⤶ <arg name="recipients" type="any">Can be a &lt;page&gt;CRecipientFilter&lt;/page&gt;, &lt;page&gt;table&lt;/page&gt; or &lt;page&gt;Player&lt;/page&gt; object.</arg>⤶ <arg name="args" type="vararg">Data to send in the usermessage</arg>⤶ </args>⤶ </function>⤶ ⤶