Skip to content

overextended/fivem-lls-addon

Repository files navigation

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.

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages