datastream.StreamToClients

From GMod Wiki

Jump to: navigation, search
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: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Datastream.StreamToClients]Datastream.StreamToClients [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSends the IncomingHook datastream with a table to every player on the server.
Used onNewerServer.png
Code
datastream.StreamToClients( player.GetAll( ), "IncomingHook", { "I dunno lol", 1, -1, 1.024, true, false, { "test", "hello" } } );
 
 
OutputNone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox