Skip to content
Garry's Mod

Documentation: Lua linter (GLua)

Structure checker for Lua/GLua running in your browser: function/if/for/while/repeat blocks, brackets, strings, comments (--, //, /* */) and warnings for RunString/CompileString/http.Fetch. Heuristic: does not replace the server console.

Last updated: 10/9/2026

Open the tool

GLua is Garry's Mod's Lua, with syntax extensions (//, /* */, !=, &&, ||, continue). This tool locally checks that blocks, brackets and strings are balanced, to catch a mistake before it floods the server console.

How to use the tool

  1. Paste your script into the text area (it stays in your browser).

  2. Read the list of errors and warnings with their line number.

  3. Fix them, then recheck until it reports no issue.

  4. Then test on a development server: only the server truly validates the logic.

Limits of the check

The analysis is heuristic: it knows neither variables, nor the Garry's Mod API functions, nor runtime errors. Warnings about RunString, CompileString and http.Fetch invite you to review the code, not to reject it.

Frequently asked questions

Does the linter accept GLua syntax (!=, &&, //)?
Yes for // and /* */ comments; operators are not parsed, so they raise no error. Only block structure is checked.
Is my code sent anywhere?
No, the analysis runs in your browser and the text is only kept in your local storage.
Garry's Mod
Garry's ModOpen access
Build your Garry's Mod server.cfg: name, passwords, region, FastDL downloads, sandbox limits and security settings.
ConfigurationSandboxOpen
Documentation
Garry's Mod
Garry's ModOpen access
Generate the Garry's Mod srcds launch line: map, gamemode, slots, port, Workshop collection and GSLT token.
LaunchConfigurationOpen
Documentation
Garry's Mod
Garry's ModSign-in required
Paste your Workshop links: cleaned, de-duplicated IDs, the +host_workshop_collection parameter and a ready workshop.lua file.
WorkshopAddonsOpen
Documentation
Garry's Mod
Garry's ModSign-in required
Generate DarkRP's settings.lua: economy, salaries, speeds, laws, chat distances and limits, with the official defaults.
DarkRPConfigurationRoleplayOpen
Documentation