This extension adds FiveM native support, code-completions, diagnostics and helpful commands for lua files. If you like the extension or find it useful, please consider giving it a star on GitHub or leaving a review on the VS Code Marketplace!
I recommend also getting sumneko's lua language server for reference finding, lua auto-completion and more helpful features. To not interfere with this extension i'd also turn off Lua.diagnostics.enable
, Lua.semantic.variable
and increasing Lua.workspace.preloadFileSize
if necessary.
Natives are automatically updated from the FiveM documentation.
The extension will try to detect the context of the current file (server or client) and will prioritize natives that are available in that context.
The extension will automatically try to detect any color values and highlight them.
The extension will show a preview of a hash function when hovering over it. With lua-glm enabled it also provides hover suggestions for vector swizzling.