Subscribe to this Thread
(Receive email notifications)
Pin To Profile
A helpful function to create a scrolling menuitem.
function menu(i,opt,func)
local indx=0
menuitem(i,"< "..opt[1].." >",
function(b)
if(b==112)then
func(opt[indx+2])
return
end
indx+=b*4-6
indx%=#opt
menuitem(i,"< "..opt[indx+1].." >")
end
)
end