Jump to content

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


Division

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?

Link to comment
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.
×
×
  • Create New...