Page 5: Luapad & Running Code

You can write & execute Lua code with the Luapad. Just type luapad into your console to open it.

It supports tabs, saving and opening files, indentation, and of course, running Lua. Note that you cannot use the Luapad to run code server-side. (only admins can.) This is illegal and you will face righteous slaughter if you somehow run code on the server.

Additionally, sv_allowcslua is set to 1, so you are free to load your own clientside scripts as you please. Make an aimbot! Find people with ESP! Create a spreadsheet! Crash your own game! The possibilities are endless and it's all up to you!

Helpful Resources

Here are some tutorials, resources and documentation about Garry's Mod and its Lua API.