Jump to content

Table sorting(vehicles-cp collected)


Iwasawa

Recommended Posts

Help me please!

I need help with table sorting, im working on AI racers script, and it works fairly good already, but i need to sort them by how many cps did they collect.

So i have the Vehicles as keys and the CP collected as value. How can i sort by value?

I store the keys as data in the vehicles so i can access the names table with the key of the vehicle.(the AI has names)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...