datastream.StreamToClients
From GMod Wiki
Function | |
Syntax |
datastream.StreamToClients( Table :Player :CRecipientFilter recipients, String handler, Table data [, Function callback] ) Where is this used? |
Description: | |
Sends a datastream to client(s). Calls callback when finished sending with the operation ID. | |
Returns: | Number operationid |
Part of Library: | datastream |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Datastream.StreamToClients]Datastream.StreamToClients [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The 'recipients' argument can either be a table of players, a single player or a CRecipientFilter. Bear in mind that the table will be converted to a CRecipientFilter.
- Unless you are sending a table of unpredictable structure such as a config file or news bulletin, it is more efficient (if not as easy) to use Usermessages.