BroadcastLua
BroadcastLua( string code )
Description
Sends the specified Lua code to all connected clients and executes it.
If you need to use this function more than once, consider using net library.
Send net message and make the entire code you want to execute in net.Receive on client.
If executed clientside, this function won't do anything.
Arguments
Example
Print "Hello World!" in the clients' console.
Output: Hello World!
Garry's Mod
Rust
Steamworks
Wiki Help