Generates snippets/completions for FiveM and GTA V native functions by parsing them from the given Lua files (scheduler.lua, natives_server.lua, natives_universal.lua)
Currently supports the following editors:
- Sublime Text
- Visual Studio Code
- Atom
- Notepad++
See the release topic on the FiveM forums for downloads and more details.
-
Install Python 3 and Git if you do not already have them.
-
Create a new directory for the project, and
cd
into it. -
Install the required packages using
pip install -r requirements.txt
. -
Create an input folder and put your
scheduler.lua
,natives_server.lua
, andnatives_universal.lua
inside. They can be found in yourFiveM Application Data/citizen/scripting/lua
directory. -
Run the script using
python generator.py
, optionally providing the 1st argument as the input folder and the 2nd argument as the output folder. If none are provided, it will use the defaultinput
andoutput
folders in the current working directory.
This project is licensed under the GNU General Public License V3, as viewable in the LICENSE
file.