Skip to main content
GLua Language Server (GLuaLS) adds completion, diagnostics, formatting, and debugging to Garry’s Mod Lua in VS Code.

Install

Install the VS Code extension and check that it is running.

Workspace setup

Open addons, gamemodes, and shared libraries correctly.

Set up debugging

Connect VS Code to a local or remote SRCDS server.

Find what you need

Realm awareness

Find client, server, and shared realm mistakes.

Network validation

Check network message names and read/write payloads.

Scripted class support

Work with ENT, SWEP, TOOL, NetworkVar, and AccessorFunc code.

Hook intelligence

Complete hook names and type hook callback parameters.

Integrated debugger

Set breakpoints, inspect state, and run Lua on SRCDS.

AI integration

Give supported AI tools access to GLua docs and a debug session.

More help

Use configuration to change analyzer behavior, annotations to document your own code, or command-line checks to run the same diagnostics in CI.