G.SendUserMessage
From GMod Wiki
Revision as of 17:52, 17 July 2011 by TheFreeman193 (Talk | contribs)
| Function | |
| Syntax |
SendUserMessage( String message_name,CRecipientFilter :Player entity [, ...] ) Where is this used? |
| Description: | |
| Convenience function for sending a list of values to clients using a User Message | |
| Returns: | nil |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.SendUserMessage]G.SendUserMessage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- Everything after the second argument will be sent into the usermessage
- Number values will always be sent as Longs, do not use this function if you want to send a large number of small values
- Passing a player entity for the recipientfilter is acceptable
- Passing nothing for the recipientfilter sends the message to all players