Global/SendUserMessage

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added small note for client-side useless.)
(Makes no sense this is not deprecated while umsg is.)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=SendUserMessage
+
|Description={{Deprecated|This uses the {{Lib|umsg}} internally, which has been deprecated. Use the {{Lib|net}} instead.}}
|Parent=Global
+
Send a usermessage
|Description=Send a usermessage
+
 
{{Note|Useless on client, only server can send info to client.}}
 
{{Note|Useless on client, only server can send info to client.}}
 
|Realm=Shared
 
|Realm=Shared

Latest revision as of 12:10, 9 May 2019

 SendUserMessage( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

This uses the umsg library internally, which has been deprecated. Use the net library instead.

Send a usermessage

NOTE

Useless on client, only server can send info to client.

Arguments

string name

The name of the usermessage

Arguments

any recipients

Can be a CRecipientFilter, table or Player object.

Arguments

vararg args

Data to send in the usermessage
Personal tools
Navigation