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 it won't do anything.
If executed clientside it won't do anything.
Arguments
Example
Print "Hello World!" in the clients' console
Output: Hello World!
Example
If you try to send more than 254 characters, the function won't error, but an engine message will be printed to the console
Output: (Printed to console)
DLL_MessageEnd: Refusing to send user message LuaCmd of 256 bytes to client, user message size limit is 255 bytes