This release gives you access to snippets and completions for several editors including Sublime Text, Visual Studio Code, Atom, and Notepad++. It supports both GTA’s native methods and the ones FiveM adds. Functions found in scheduler.lua, natives_server.lua, and natives_universal.lua are all included.
I’m open to suggestions on any other editors to implement autocompletions for. Furthermore, if there are any problems with the files provided here, feel free to let me know.
Visual Studio Code
- Sublime Text: drop the fivem.sublime-completions into %AppData%/Sublime Text 3/Packages
- Visual Studio Code: drop the lua.json into %AppData%/Code/User/snippets
- Atom: drop the snippets.cson into %UserProfile%/.atom/Packages
- Notepad++: drop the lua.xml into %ProgramFiles%/Notepad++\plugins\APIs (dependent on install location)
Readme files are provided which go into more detail if required.
The script that generates these snippets is available for viewing at the following repository: