Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CfxLua Language ServerNew to Visual Studio Code? Get it now.
CfxLua Language Server

CfxLua Language Server

TGIANN

|
1 install
| (0) | Free
Fast language server for FiveM Lua (CfxLua), written in Rust.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CfxLua Language Server for VS Code

Runs cfx-lua-ls for Lua files: syntax diagnostics, outline (document symbols), folding, expand / shrink selection and semantic highlighting.

Settings

setting default
cfxLuaLs.server.path empty Absolute path to cfx-lua-ls, from user settings only (a workspace cannot choose the program that runs). Empty: the binary shipped in the extension's server/ folder, else cfx-lua-ls from an absolute PATH folder.
cfxLuaLs.trace.server off messages / verbose log the protocol to the output channel.

Command: CfxLua: Restart Language Server.

With the Lua (LuaLS) extension enabled too, both servers run and their diagnostics show twice; disable one of them for the workspace.

Build from source

cargo build --release            # in the repository root
cd editors/vscode
npm ci
npm run typecheck
npm run build

Then run VS Code with --extensionDevelopmentPath=<repo>/editors/vscode and set cfxLuaLs.server.path to <repo>/target/release/cfx-lua-ls(.exe).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft