• 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

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).

Thread starter Similar threads Forum Replies Date
good_live Script Development 3

Similar threads