Garry's Mod Wiki

net.SendToServer

Description

Sends the current message to the server.

Example

Sends a simple "hello_world" message with the string "Hi" to the server

net.Start( "hello_world" ) net.WriteString( "Hi" ) net.SendToServer()
Output: The netmessage "hello_world" is sent to the server. The server can handle this with net.Receive.

Remember that any client has the potential to send any net message at any time. On your server-side net.Receive, make sure to verify the message sender's permissions whenever you can and prevent expensive functions from being run too often.

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 16
Render Body 0
Render Sidebar 9