kkbs4u Posted January 10, 2022 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
MAARS Posted January 10, 2022 Posted January 10, 2022 Try this method, not the best one but ... script.lua
CmP Posted January 11, 2022 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)
kkbs4u Posted January 11, 2022 Author 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
Question
kkbs4u
5 items in search list then how can i add items save list with diffrenwt name
ammo
guns
money
diamonds
gold
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.