Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>cfxlua-vscodeNew to Visual Studio Code? Get it now.

cfxlua-vscode

Overextended

|
1,880 installs
| (2) | Free
IntelliSense support for the Lua Script runtime used by FiveM and RedM
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CfxLua support for VSCode (and FXCode)

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

Adds declarations for functions and types added by the Lua Script Runtime, LuaGLM language, environmental globals, and (FiveM/CFX) natives.
IntelliSense and annotations are provided by sumneko's lua language server.

  • Script Runtime
  • LuaGLM
  • scheduler.lua

image image

Native declarations

Natives for FiveM and FXServer are included with the extension. This guide is for manually generating natives.

  • 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

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft