Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
OrderedDataStore example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleitnick committed May 21, 2019
1 parent a50809f commit 76091ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/ServerStorage/Aero/Modules/Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,18 @@
-- Cleanup stuff
end)
-- OrderedDataStore example:
data = Data.ForPlayer(somePlayer, true)
data:GetSorted(true, 10, 0, 1000):Then(function(pages)
return pages:GetCurrentPage()
end):Then(function(page)
for k,v in pairs(page) do
print(k, v)
end
end)
For in-depth info on DataStores:
Expand Down

0 comments on commit 76091ba

Please sign in to comment.