FiveM Config.lua Validator & Checker
Paste your Config.lua file to check for syntax errors. Finds missing commas, unmatched brackets, unclosed strings and more.
What this tool is for
A config file with one missing comma stops the whole resource, and the server console only tells you the file and a line number that is often several lines past the real mistake. This validator parses the file the way Lua does and points at the place where the structure actually breaks, before you upload anything to the server.
How to use it
- Step 1:
Paste the full content of your Config.lua into the field. The file never leaves your browser.
- Step 2:
Press validate. The check runs over brackets, quotes, commas and comment blocks.
- Step 3:
Fix the reported line. The first error is the one that matters, the ones after it are usually consequences.
- Step 4:
Validate again until the file is clean, then upload it and restart the resource.
Frequently asked questions
Why does the server report a different line number than the editor?
Lua reports where the structure could no longer be resolved, not where the mistake was made. A table opened on line 40 and never closed is reported at the end of the file. That is why a structural check beats reading the stack trace.
Is a trailing comma allowed in a Lua table?
Yes, unlike in strict JSON, a comma after the last entry is valid Lua. The mistake is the opposite one, a missing comma between two entries, and that is what breaks most configs.
Does the validator check whether my settings make sense?
No, it checks syntax only. A valid file can still contain a job name that does not exist or a coordinate in the ocean. It answers one question: will Lua load this file at all.
Is my config uploaded anywhere?
No. The check runs entirely in your browser, nothing is sent to a server. You can paste configs that contain licence keys or database settings without exposing them.
Related tools
FiveM Lua Code Formatter & Beautifier
Format, beautify and minify Lua code for FiveM. Proper indentation for if/then/end, function/end blocks. Syntax highlighting, copy formatted output instantly.
JSON to Lua Table Converter for FiveM
Convert JSON to Lua table syntax and Lua tables back to JSON. Handles nested objects, arrays, booleans, null to nil. Syntax highlighted output for FiveM developers.
FiveM Server Config Generator (server.cfg)
Generate a complete FiveM server.cfg configuration file. Set server name, max players, resources, permissions and more. Copy or download your config instantly.