kkbs4u Posted January 10, 2022 Share Posted January 10, 2022 5 items in search list then how can i add items save list with diffrenwt name ammo guns money diamonds gold Link to comment Share on other sites More sharing options...
MAARS Posted January 10, 2022 Share Posted January 10, 2022 Try this method, not the best one but ... script.lua Link to comment Share on other sites More sharing options...
CmP Posted January 11, 2022 Share Posted January 11, 2022 Set "name" field of sub-tables to corresponding values before calling "addListItems" function: local results = gg.getResults(5) -- if results list has less than 5 results, returned table will have less elements accordingly results[1].name = "ammo" results[2].name = "guns" results[3].name = "money" results[4].name = "diamonds" results[5].name = "gold" gg.addListItems(results) Link to comment Share on other sites More sharing options...
kkbs4u Posted January 11, 2022 Author Share Posted January 11, 2022 1 hour ago, CmP said: Set "name" field of sub-tables to corresponding values before calling "addListItems" function: local results = gg.getResults(5) -- if results list has less than 5 results, returned table will have less elements accordingly results[1].name = "ammo" results[2].name = "guns" results[3].name = "money" results[4].name = "diamonds" results[5].name = "gold" gg.addListItems(results) Great man, its working for me thanks Link to comment Share on other sites More sharing options...
Question
kkbs4u
5 items in search list then how can i add items save list with diffrenwt name
ammo
guns
money
diamonds
gold
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.