Sa1ln

[Part 1] Setting up a development environment [NodeJS/VSC]

Recommended Posts

Posted (edited)

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 :D

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)

 

Edited by Sa1ln
changed title
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.