Jump to content

How do I get/modify ride information?


Recommended Posts

  • 1 year later...

I might be almost a year late to answer however,
this could still be usefull to others.

you can loop through all the rides with a simple for loop:
 

Quote

//This loops through all rides
for (var i = 0; i < Object.keys(map.rides).length; i++) {

        console.log(map.rides[i]); //List all ride details/attributes for the current ride
        map.rides[i].price = [100]; //This will change the price to 10.00 for the current ride

}

 

map.rides[ride number]; includes all the details you need.
map.rides[i].price = [number]; sets the price to whatever you want.

I have included a file so you can take a look around.

 

 

 

 

map,rides[1] Output.txt

  • Useful 1
Link to comment

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