Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>FiveM LUA LinterNew to Visual Studio Code? Get it now.
FiveM LUA Linter

FiveM LUA Linter

Preview

Marcelo Ferreira

|
3 installs
| (0) | Free
Extension designed to help linting FiveM LUA scripts without issues due to no `` (backticks) strings support.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

fivem-lua-linter

This Visual Studio Code extension is designed to help linting FiveM LUA scripts without facing issues regarding the `` (backticks) strings.

The extension needs some manual love to work as intended, so here's some steps you have to do before using it:

  • You have to set up your local luacheck enviroment, so the linter can use it as a tool to point warnings & errors agaisnt your files.

    Download the luacheck from the the latest known up-to-date luacheck repo (i recommend is this one: https://github.com/lunarmodules/luacheck).

    Now there's two alternatives for installation:

    1. Create a folder with it inside and set it at the fivem-lua-linter.luacheckPath setting.

    2. Run it using LuaRocks.

  • Now you have to create a folder which will be used to provide the LUA content with required data to reduce the amount of false warnings the linter would raise.

    After creating it, set it at the fivem-lua-linter.luaContentPath setting.

  • As this tool has been developed with some exclusive ESX framework in mind, i left some room which allows you to provide .lua files to the linter so it doesn't raise errors or warnings at the functions present in those .lua files.

    You can do that placing framework LUA files inside the LUA Content folder at esx/client (For client only imported functions) and esx/server (For server only imported functions).

  • With that in mind, we also have to provide a LUA file with the FiveM natives definitions too so the linter will be able to identify them and don't raise warnings about them.

    You can get the natives_universal.lua from your FiveM client at FiveM.app\citizen\scripting\lua and you should paste it at the LUA Content folder inside a folder called natives. The final path for it should be: lua_content/natives/natives_universal.lua.

  • After all this, you should be good to go :D

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft