Skip to main content
GLua Language Server (GLuaLS) adds completion, hover docs, diagnostics, formatting and a debugger for Garry’s Mod Lua in VS Code. Most projects work without any setup. These docs cover installing it, opening your project the right way, and changing settings when you need to.

Install

Install the extension and check that it is running.

Open your project

Open addons and gamemodes so GLuaLS sees the right files.

Fix common warnings

Unknown globals, wrong realm warnings and other quick fixes.

Change settings

Use the settings panel or a .gluarc.json file.

Set up the debugger

Connect VS Code to a local SRCDS server.

Document your code

Add types to your own functions and classes.
Found a bug or a false warning? Open an issue.