net.Broadcast

From GMod Wiki

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



Examples

DescriptionSends a packet to all players.
Used onNewerServer.png
Code
net.Start("NETHOOK")
    net.WriteString("some text")
net.Broadcast()
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox