Lua openscript

From GMod Wiki

Jump to: navigation, search


Console.png Go to:
Console
Command
Syntax lua_openscript String file name
Available On: NewerServer.pngState Console.png
Part Of: Garry's Mod
Description:
A console command that allows you to run any lua script.

Examples

DescriptionRunning a serverside script located in the base /lua/ folder.
Used onNewerServer.png
Code
lua_openscript myscript.lua
OutputThe script has been read and executed by the engine.



Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox