Skip to content

AnishBplayz/cfxlua-vscode-openvsx

 
 

Repository files navigation

CfxLua IntelliSense — Community Fork (VSCode & Open VSX)

Open VSX VS Marketplace

About this fork

This extension is a community fork of the archived overextended/cfxlua-vscode project. The original is no longer maintained; this fork is kept up to date and published for the community.

It is maintained independently and published under the anishbplayz namespace on both the Open VSX Registry and the Visual Studio Marketplace.

This extension is not authored, published, sponsored, nor endorsed by Cfx.re.


Why use this fork?

  • Actively maintained — The original overextended extension is archived; this fork receives updates and remains available.
  • Available everywhere — Install from both Open VSX (e.g. VSCodium) and the Visual Studio Marketplace (VS Code, Cursor).
  • Drop-in replacement — Same IntelliSense, native definitions, and runtime globals as the original; you can switch without changing your workflow.

What this extension provides

  • Smart editing for Lua — Diagnostics, hover info, and auto-completion via sumneko's Lua Language Server.
  • Cfx runtime globals — Environment APIs such as CreateThread, promises, json, and statebags are recognized and completed.
  • Game natives — Type definitions and IntelliSense for FiveM, RedM, and CFX natives.
  • LuaGLM support — Types and support for Cfx's Lua implementation (LuaGLM): vectors, quaternions, and matrices, plus limited power patches support.
    Note: Some power patches have been reported to cause crashes; use with care.

Screenshots

IntelliSense preview

Auto-completion preview


Configuration

Setting Options Description
cfxlua.game gtav, rdr3 Choose GTA V or RDR3 natives.

Commands (Command Palette):

  • CfxLua: Use GTAV natives — Switch to GTA V natives.
  • CfxLua: Use RDR3 natives — Switch to RDR3 (RedM) natives.

Credits

Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, TasoOneAsia, Overextended and CommunityOX.

Contributors

Languages

  • TypeScript 78.2%
  • JavaScript 21.8%