Garry's Mod Wiki

BroadcastLua

Description

Sends the specified Lua code to all connected clients and executes it.

Arguments

1 string code
The code to be executed. Capped at length of 254 characters.

Example

Print "Hello World!" in the clients' console

BroadcastLua( print( "Hello World!" ) )
Output: Hello World!

Page Links


Special Pages


Wikis

?

Render Time: 21ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 5