Native declarations for LLS
See the codeLua types for FiveM and RedM to use with Lua Language Server.
/home/dev/lua-addons)./home/dev/lua-addons/fivem-lls-addon)..luarc.json file in your project with the contents below.
.luarc.json and provide .luarc.default.json for other users.userThirdParty to point to your lua-addons directory.git clone https://github.com/overextended/fivem-lls-addon.git
.luarc.json
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.checkThirdParty": "Ask",
"workspace.userThirdParty": ["/home/dev/lua-addons"],
"workspace.library": ["/home/dev/fxserver/server-data/resources/ox_lib"]
}
[!TIP] You can setup a top-level config in your workspace, rather than per-project if you prefer.
However, you will need per-project settings to supportrequirepaths.
If you want these settings to apply globally to any Lua project (similar to cfxlua-vscode) you can do that too.
CTRL+ALT+, or select "Open Settings File" from the menu.lsp settings with the changes below."lsp": {
"lua-language-server": {
"settings": {
"Lua": {
"workspace": {
"checkThirdParty": "Ask",
"userThirdParty": ["/home/dev/lua-addons"],
"workspace.library": ["/home/dev/fxserver/server-data/resources/ox_lib"]
},
},
},
},
}
Lua
100.0%
Native declarations for LLS
See the codeLua types for FiveM and RedM to use with Lua Language Server.
/home/dev/lua-addons)./home/dev/lua-addons/fivem-lls-addon)..luarc.json file in your project with the contents below.
.luarc.json and provide .luarc.default.json for other users.userThirdParty to point to your lua-addons directory.git clone https://github.com/overextended/fivem-lls-addon.git
.luarc.json
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.checkThirdParty": "Ask",
"workspace.userThirdParty": ["/home/dev/lua-addons"],
"workspace.library": ["/home/dev/fxserver/server-data/resources/ox_lib"]
}
[!TIP] You can setup a top-level config in your workspace, rather than per-project if you prefer.
However, you will need per-project settings to supportrequirepaths.
If you want these settings to apply globally to any Lua project (similar to cfxlua-vscode) you can do that too.
CTRL+ALT+, or select "Open Settings File" from the menu.lsp settings with the changes below."lsp": {
"lua-language-server": {
"settings": {
"Lua": {
"workspace": {
"checkThirdParty": "Ask",
"userThirdParty": ["/home/dev/lua-addons"],
"workspace.library": ["/home/dev/fxserver/server-data/resources/ox_lib"]
},
},
},
},
}
Lua
100.0%