Sign in to follow this  
Division

Mix C# and JavaScript good or bad? Variable-Storage differs?

Recommended Posts

Hello,

First question: My team and I want to use C# for the server-side programming and JavaScript for the client-sided things. Is this possible and good to go?

 

Second question: Is the storage between JS and C# different? - Because:


When I wanted to to the following:

player.Vehicle.SetData("test", "Testing123");

I had an event in my client-side (JavaScript) to get this data but the call was

player.vehicle.getVariable('test');

The result was undefined.
 

Is there an equalient function as vehicle.getData in JavaScript?

What am I missing?

Share this post


Link to post
Share on other sites

You want to set SetSharedData instead of SetData on the server side if you want to access that data from clientside

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.