net.Send

From GMod Wiki

Jump to: navigation, search
Function
Syntax net.Send( Player OR Table recipients )
Where is this used?
Description:
Dispatches current net message.
Returns: nil
Part of Library: net
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Net.Send]Net.Send [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSends a packet to a player.
Used onNewerServer.png
Code
net.Start("my message")
    net.WriteString("some text")
net.Send(ply)
 
OutputN/A



DescriptionSends a packet to all players.
Used onNewerServer.png
Code
net.Start("my message")
    net.WriteString("some text")
net.Send(player.GetAll())
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox