Skip to content
Lua checker

Find the missing end.Before the restart.

Drop scripts or whole resource folders. The real Lua 5.4 compiler checks every file and shows you the line that breaks.

Your files never leave your browser.
FiveM/RedM extensions (CfxLua)Accepts what FiveM and RedM add to Lua 5.4: `hashes`, +=, ?. and ?[ ], in unpacking, { .set } tables and /* */ comments.
Drop Lua files or resource folders hereOnly .lua files are checked. Everything else is skipped.

Questions and answers

What does the checker find, and what not?

It finds syntax errors: a missing end or bracket, a typo in an operator, an unfinished string, a goto without its label. It compiles each file with the real Lua 5.4 compiler but never runs it. So it cannot find runtime errors, misspelled function names, undefined globals or wrong natives. Those only show when the script runs.

What are the FiveM/RedM extensions?

FiveM and RedM run CfxLua, Lua 5.4 with a few additions: `hash` literals in back-ticks, compound assignment like += and -=, safe navigation with ?. and ?[ ], in unpacking (local a, b in t), set constructors ({ .a, .b }) and /* */ comments. With the switch on, the checker accepts exactly these. Turn it off to check plain Lua 5.4. "Not equal" stays ~= in CfxLua too.

Are my scripts uploaded?

No. Your files are read and checked in your browser, with Lua compiled to WebAssembly. Nothing is sent to a server and nothing is stored after you close the tab.

Can I check a whole resource folder?

Yes. Drop one or more resource folders, or your whole resources folder, onto the page or pick it with Choose folder. Every .lua file inside is checked, subfolders included. Other files are skipped. fxmanifest.lua also gets a check for fx_version, game and, on RedM, rdr3_warning.