|
1 | 1 | # CfxLua IntelliSense (FiveM / RedM) |
2 | 2 |
|
3 | | -[](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) [](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) [](https://marketplace.visualstudio.com/items?itemName=anishbplayz.cfxlua-vscode-openvsx) [](https://marketplace.visualstudio.com/items?itemName=anishbplayz.cfxlua-vscode-openvsx) |
| 3 | +[](https://github.com/AnishBplayz/cfxlua-vscode-openvsx/releases) |
| 4 | +[](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) |
| 5 | +[](https://marketplace.visualstudio.com/items?itemName=AnishBplayz.cfxlua-vscode-openvsx) |
4 | 6 |
|
5 | | -**Source:** [AnishBplayz/cfxlua-vscode-openvsx](https://github.com/AnishBplayz/cfxlua-vscode-openvsx) |
| 7 | +> **Note** |
| 8 | +> Community-maintained fork of the archived [overextended/cfxlua-vscode](https://github.com/overextended/cfxlua-vscode). Published under the `anishbplayz` namespace on [Open VSX Registry](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) and [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=AnishBplayz.cfxlua-vscode-openvsx). |
| 9 | +> |
| 10 | +> *This extension is not authored, published, sponsored, nor endorsed by Cfx.re.* |
6 | 11 |
|
7 | | -> [!NOTE] |
8 | | -> Community-maintained fork of archived [overextended/cfxlua-vscode](https://github.com/overextended/cfxlua-vscode). Published under the `anishbplayz` namespace on [Open VSX Registry](https://open-vsx.org/extension/anishbplayz/cfxlua-vscode-openvsx) and [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=anishbplayz.cfxlua-vscode-openvsx). |
9 | | -
|
10 | | -_This extension is not authored, published, sponsored, nor endorsed by Cfx.re._ |
| 12 | +--- |
11 | 13 |
|
12 | 14 | ## Features |
13 | 15 |
|
14 | | -- Diagnostics, IntelliSense, annotations, and auto-completion provided by [sumneko's Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua). |
15 | | -- Support for runtime/environment globals (e.g. CreateThread, promises, json, statebags). |
16 | | -- Support for FiveM, RedM, and CFX natives. |
17 | | -- Support for Cfx's implementation of the [Lua language (LuaGLM)](https://github.com/citizenfx/lua/tree/luaglm-dev/cfx). |
18 | | - - Support for vector, quat, and matrix types. |
19 | | - - Partial support for extended syntax / [power patches](https://github.com/citizenfx/lua/blob/luaglm-dev/cfx/README.md#power-patches). |
20 | | - - _Use with caution, some patches have been known to cause crashes!_ |
| 16 | +- **IntelliSense & diagnostics** — Provided by [sumneko's Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua): diagnostics, annotations, and auto-completion. |
| 17 | +- **Runtime globals** — Support for environment globals (e.g. `CreateThread`, promises, `json`, statebags). |
| 18 | +- **Natives** — Support for FiveM, RedM, and CFX natives. |
| 19 | +- **LuaGLM** — Support for Cfx's [Lua implementation (LuaGLM)](https://github.com/citizenfx/lua/tree/luaglm-dev/cfx): |
| 20 | + - Vector, quat, and matrix types. |
| 21 | + - Partial support for extended syntax / [power patches](https://github.com/citizenfx/lua/blob/luaglm-dev/cfx/README.md#power-patches). |
| 22 | + *Use with caution — some patches have been known to cause crashes.* |
| 23 | + |
| 24 | +--- |
21 | 25 |
|
22 | | - |
23 | | - |
| 26 | +## Screenshots |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
24 | 31 |
|
25 | 32 | --- |
26 | 33 |
|
27 | | -**Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, TasoOneAsia and Overextended** |
| 34 | +## Configuration |
| 35 | + |
| 36 | +| Setting | Options | Description | |
| 37 | +|----------------|-----------|--------------------------| |
| 38 | +| `cfxlua.game` | `gtav`, `rdr3` | Choose GTA V or RDR3 natives. | |
| 39 | + |
| 40 | +**Commands (Command Palette):** |
| 41 | + |
| 42 | +- **CfxLua: Use GTAV natives** — Switch to GTA V natives. |
| 43 | +- **CfxLua: Use RDR3 natives** — Switch to RDR3 (RedM) natives. |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Credits |
| 48 | + |
| 49 | +Thanks to CitizenFX, gottfriedleibniz, alloc8or, iTexZoz, TasoOneAsia, Overextended and CommunityOX. |
0 commit comments