• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

EN Get the key with the highest value


Active Member
I have script, that writes something in database, that doesn't matter.

Let's take it like this:
- I have 10 keys with name "testUID", where UID is the UID of some players..
- I have different values for each key, for ex. the first key has value of 5, the second 10, and so on..

How can I get the key with the highest value?

For ex. if tenth key has a value of 100 (the highest from all the keys), how can I get they "keyname" of the key that has the highest value (in this situation it's 100).


Similar threads