I’ve made a FiveM lua auto-completion file for Notepad++ containing (almost) all Native Functions. This was requested (and joked about) by @Bluethefurry on Discord.
Copy the lua.xml file that you just extracted to this folder.
Use CTRL + SPACE while writing inside of a .lua file to get function hints. (Example in the first screenshot above)
When you have your cursor between the two ( ) brackets of a function, press CTRL + SHIFT + SPACE to get information on how to use the function. (Example in the second screenshot above!)
Feel free to change anything to your liking, just don’t re-release this file without giving credit to me.
This file was made using a custom coded script, some descriptions of certain functions might be incorrect due to the limitations of JavaScript scripting. If you see any mistakes just head over to the GitHub repository and create a pull request to fix it.
Change log
changelog spoiler
v2.0
Changes in v2.0
+ Added common lua keywords and functions.
+ Added Citizen.Wait() and Citizen.CreateThread()
+ Updated all natives to the latest version as of 14-12-2017.
+ Reduced the amount of incorrect hints by rewriting my script that's used to create this file.
Possibly other changes that I already don't remember.
v2.0.1
Big update 18-09-2017 (this is not the latest version)
Please update to the latest version whenever possible, this update contains a lot of fixes, improvements and changes. There’s honestly too much to list.
Changes:
This update contains a completely new layout of the info, it’s now all limited to 100 characters wide (excluding function names + parameters) so you can actually see the full window without having to have 3 monitors for some long natives.
It’s also up to date as of today (25-10-2018). Might contain bugs, but at least it’s up to date again. PRs to fix mistakes are welcome!
+ Added common lua keywords and functions.
+ Added Citizen.Wait() and Citizen.CreateThread()
+ Updated all natives to the latest version as of 14-12-2017.
+ Reduced the amount of incorrect hints by rewriting my script that's used to create this file.
Possibly other changes that I already don't remember.
There are some wrong natives like TriggerEventInternal instead of TriggerEvent but I don’t have time to fix those right now, it’s not a lot but a few CitizenFX Api set natives aren’t 100% correct.
Changes:
This update contains a completely new layout of the info, it’s now all limited to 100 characters wide (excluding function names + parameters) so you can actually see the full window without having to have 3 monitors for some long natives.
It’s also up to date as of today (25-10-2018). Might contain bugs, but at least it’s up to date again. PRs to fix mistakes are welcome!
No more APIs folder avaible (still exist but hidden).
Stop NotePad++
Go to the folder (by default) C:\Program Files (x86)\Notepad++\autoCompletion
Replace the actual lua.xml by this one from the github (of course make a save of the original lua.xml)
Restart NotePad++