Hello, I’m sharing with you a small script that generate snippets/completions files for Sublime Text 3, Visual Studio Code or Atom. You can generate your own file with the latest update of the FiveM’s natives repository.
Source code
You can find the NodeJS script below and generate your own completion file.
Can you double check the snippets.cson file? I think there are multiple duplicated entries in it. Every time I load them in Atom, it throws errors saying there are “duplicate keys”.
In VSCode, you want to use the lua.json one.
Under File --> Preferences --> User Snippets it will ask you for which language you want it and you type in lua. This will open the editor’s lua.json in which you paste the contents of the lua.json provided in a release of this github repository.
I forgot to mention that I use sublime, but thanks, I found here how to use it, I need to put it inside the “AppData\Roaming\Sublime Text 3\Packages\User” and then create a .lua file to use, done