Because of the RageMP downtime for the 1.47 update, i wanted to make a tutorial. Here it is!
Sorry for my english, im German
Step 1: Downloading Stuff
Visual Studio Code: https://code.visualstudio.com
NodeJS (Download the Windows Installer): https://nodejs.org/en/download/
When you got everthing, install it.
Step 2: Setting up development environment
Go to C:/RAGEMP/server-files/packages (or where you installed RAGEMP).
Rightclick and Select "Open with Code".
Minimize the Window.
Now Shift+Rightclick in the /packages directory and select "Open Powershell".
Type in
npm init
You can leave everything blank at the moment.
Now, type in:
npm install --save-dev github:CocaColaBear/types-ragemp-s#master
This will install the types for auto-complete.
Once it's done, you can close powershell, and restart VSC. (Make sure you open VSC with rightclick in /packages.)
Now you have an nice workspace to getting started!
(Optional) Setting up for client-side
For client-packages its almost the same. But, here for you:
Go to C:/RAGEMP/server-files/client-packages(or where you installed RAGEMP).
Rightclick and Select "Open with Code".
Minimize the Window.
Now Shift+Rightclick in the /packages directory and select "Open Powershell".
Type in
npm init
You can leave everything blank at the moment.
Now, type in:
npm install --save-dev github:CocaColaBear/types-ragemp-c#master
This will install the types for auto-complete.
Once it's done, you can close powershell, and restart VSC. (Make sure you open VSC with rightclick in /client-packages.)
Now you have the same for client-side!
For Questions, PM me or DM on Discord (@Elias#2919)