rage-lua-types
rage-lua-types copied to clipboard
What is JetbrainIDE-cfx.re ? It is a small tool that will allow any JetBrain software user to benefit from the self-completion of the natives of the cfx.re platform on their IDE. (RedM and FiveM)
JetbrainIDE-CFX.RE
How to use this tool to generate / regenerate CitizenFX native ?
Attention this project requires the installation of NodeJS on the machine where you want to run it
-
Git clone projet
-
Open a terminal in the folder where it is located JetbrainIDE-CitizenFX.
-
Execute the following command
npm iand wait. -
Execute
npm install -g ts-node -
Execute
npm install -g typescript -
Once the dependencies install install execute the following command to start the generation of natives
npm run gtaornpm run rdr3ornpm run cfx -
Wait a few minutes, once the generation is finished nothing more to be written to a in your terminal, you will find a new folder named build, it is in this one that you find what you need.
-
Make a new project in Intellij using EmmyLUA as SDK

-
Click on "+" for classpath and browse to "build" folder from step 7.


- Done. You can now access all the latest natives for FiveM directly into your code.

Special Thank
@CitizenFX (https://github.com/citizenfx/natives) @alloc8or (https://github.com/alloc8or/rdr3-nativedb-data)
