This extension is not authored, published, sponsored, nor endorsed by Cfx.re.
- Diagnostics, IntelliSense, annotations, and auto-completion provided by sumneko's Lua Language Server.
- Support for Cfx's implementation of the Lua language (LuaGLM).
- Support for vector, quat, and matrix types.
- Support for safe navigation
t?.x?.y == nil
. - Support for in unpacking
local a,b,c in t
.
- Support for runtime/environment globals (e.g. CreateThread, promises, json, statebags).
- Support for FiveM, RedM, and CFX natives.
Natives are included with the extension - this section can be ignored for standard use.
- Install NodeJS
- Download JetbrainIDE-CFX.RE
- Open a terminal in the folder containing
JetbrainIDE-CFX.RE
- Execute the following commands, in order
npm i
npm install -g ts-node
npm install -g typescript
- Once all dependencies have been installed, execute
npm run start
and follow the prompts - You will want to build CFX as well as game natives
- Change
path-to-natives
to the newly build directory (i.e. C:/GitHub/JetbrainIDE-CFX.RE/build/cfx)
Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, and TasoOneAsia