Player.SendLua
From GMod Wiki
| Function | |
| Syntax | Player:SendLua( String txt ) |
| Description: | |
| Sends LUA command to player (Can be used to send Client Commands from Server to individual clients) | |
| Returns: | nil |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SendLua]Player.SendLua [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Be careful when using this function in conjunction with user input, because users can easily embed arbitrary lua strings in the input.
- Calling this with no arguments crashes the server.
See Also
- Escaping - how to embed strings into RunString