pandov

Client-side JS does not start

Recommended Posts

Hey guys!

Originally wrote the code on the client in C#. Unfortunately it does not support some of the features that I need. Therefore, I decided to transfer the client's side to the language of JS.

But the problem arose at the very beginning of the journey. I opened the tutorial (https://wiki.rage.mp/index.php?title=Getting_Started_with_Client-side) and did everything as written there. Then I started the server and joined it and I realized that nothing works. Based on the lesson materials, I have to get a chat message. But nothing works.

I would like to appeal to the multiplayer community. Can you help me solve this problem?

 

2I2C1VISvjM.jpg

h5prn1gHWTE.jpg

W6vxodVKZuQ.jpg

Share this post


Link to post
Share on other sites

cs_packages folder is for C# resources. Put your index.js inside /client_packages and not /client_packages/cs_packages.

Also what features the C# version of the api doesn't supports? I think most functions are implemented on C# (I only know of 2 functions that are not, and they can easily be put inside the index.js to run at startup while the rest of the scripts are on C#).

  • Like 1

Share this post


Link to post
Share on other sites

For sure! Thank you very much man! You really helped me. Best regards and good luck to you!)

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.