Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.24 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.24 KB

FiveM Snippet Generator

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.

Script Usage

  1. Install Python 3 and Git if you do not already have them.

  2. Create a new directory for the project, and cd into it.

  3. Install the required packages using pip install -r requirements.txt.

  4. Create an input folder and put your scheduler.lua, natives_server.lua, and natives_universal.lua inside. They can be found in your FiveM Application Data/citizen/scripting/lua directory.

  5. 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 default input and output folders in the current working directory.

License

This project is licensed under the GNU General Public License V3, as viewable in the LICENSE file.