CfxLua IntelliSense (FiveM / RedM)

Note
Community-maintained fork of the archived overextended/cfxlua-vscode. Published under the anishbplayz namespace on Open VSX Registry and Visual Studio Marketplace.
This extension is not authored, published, sponsored, nor endorsed by Cfx.re.
Features
- IntelliSense & diagnostics — Provided by sumneko's Lua Language Server: diagnostics, annotations, and auto-completion.
- Runtime globals — Support for environment globals (e.g.
CreateThread, promises, json, statebags).
- Natives — Support for FiveM, RedM, and CFX natives.
- LuaGLM — Support for Cfx's Lua implementation (LuaGLM):
- Vector, quat, and matrix types.
- Partial support for extended syntax / power patches.
Use with caution — some patches have been known to cause crashes.
Screenshots


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.
| |