Community-maintained fork of the archived CfxLua extension. Adds Lua IntelliSense, FiveM/RedM native definitions, and runtime globals for VSCode and OpenVSX Extension Package.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
CfxLua IntelliSense — Community Fork (VSCode & Open VSX)
About this fork
This extension is a community fork of the archivedoverextended/cfxlua-vscode project. The original is no longer maintained; this fork is kept up to date and published for the community.
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
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.