Discord
Login
Community
DARK THEME

Save list of objects on server?

I have a leader board list of objects on server and i need to save that list so if idk server stops or crashes i can restore scores.

i tried using storage.get("leaderboard", leaderBoard) in init and storage.set("leaderboard", leaderBoard) after sorting.
but that doesn't work and data objects look like:

object 
  username = "TEST" 
  email = "TEST@TEST.COM"  
  score = 1240  
  date = "7.12.2023"  
  month = 12  
end

It should be:

leaderBoard = storage.get( "leaderboard" )

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community