andu
Sold 649 scripts, 25 maps and 9 events!
Tried to sort it but always i have result = headache 
Give me a code what will sort this table by highest chance to lowest, please.
Thanks in advance
Give me a code what will sort this table by highest chance to lowest, please.
LUA:
local table = {
[1] = {item = {8982, 1}, chance = 1},
[2] = {item = {8985, 1}, chance = 80},
[3] = {item = {9006, 1}, chance = 45},
[4] = {item = {9019, 1}, chance = 1},
[5] = {item = {9662, 1}, chance = 300}
Thanks in advance