Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local str = LibK._(Pointshop2.GetRegisteredItems()):chain()
- :map(function(item)
- return { className = item.className, name = item:GetPrintName() }
- end)
- :sort(function(a, b)
- if tonumber(a.className) and tonumber(b.className) then
- return tonumber(a.className) < tonumber(b.className)
- elseif tonumber(a) and not tonumber(b) then
- return false
- else
- return a.className < b.className
- end
- end)
- :map(function(entry)
- return entry.className .. ": " .. entry.name
- end)
- :join("\n")
- :value()
- print(str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement