BroadcastLua

From Garry's Mod
Revision as of 10:38, 23 May 2017 by JasonMan (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 BroadcastLua( )

Contents

Description

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

Arguments

string code

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

Examples

Example

Print "Hello World!" in the clients' console

BroadcastLua( [[print( "Hello World!" )]] )

Output:

Hello World!
Personal tools
Navigation