local cat = 's' --- supply category
foreach supplyitem item cat do
while item.amounttobuy > 0 do
resupply(cat)
wait(2000,3000)
end
end
PS: 1- MAKE SURE YOUR BPS ARE CORRECTLY OPEN, or the resupply() action will not work correctly and you get stuck
2- I commend you get a safe bank script too