Lua types for FiveM and RedM to use with Lua Language Server.
- Create a directory to hold all of your Lua addons (e.g.
/home/dev/lua-addons). - Add this repo to your directory (i.e.
/home/dev/lua-addons/fivem-lls-addon). - Create a
.luarc.jsonfile in your project with the contents below. - Modify
userThirdPartyto 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"]
}Tip
You can use global or workspace settings, rather than per-project if you prefer.
Zed
- Press
CTRL+ALT+,or select "Open Settings File" from the menu. - Create or modify your
lspsettings with the changes below.