G.BroadcastLua
From GMod Wiki
| Function | |
| Syntax |
BroadcastLua( String code ) Where is this used? |
| Description: | |
| Executes the given code on all clients. | |
| Returns: | nil |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.BroadcastLua]G.BroadcastLua [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- As with all functions that send unchecked code, make sure that your code will not escape it's intended output! This will only occur if you send a variable which could be altered by a player, for example a player's name.