15:17:04.602 - 105: Serialized value exceeds 260,000 character limit

So basically, I have a Plate saving system, and looks like people likes my game!
So, every time they buy car, they get plate, but for some reason, it looks like there’s a lot of plates.
How can I fix this?
I’m saving plates like this:

	local save = _G["GamePlates"]
	PlatesData:SetAsync(usid, save)
table.insert(_G["GamePlates"],{plate ,plr.Name,VehicleModel})
1 Like

Also, another question, will the system of plate work?
Like when it finds another plate similar? it finds other?

Are you saving plates made or are you giving a random plate name if your giving a random plate name find a random plate name website use http service and check their api json.decode it then choose a random name from that

1 Like

Yes, I am saving plates obviously, but I don’t know how to properly save them, I’ve hear I could https encode the data and to retrieve https decode, but, will this work? and how can I do it?

The thing ur trying to save is over the 260k character limit. What are you even saving? Try printing HttpService:JSONEncode(save)

1 Like

You can save tables fine without encoding them; encoding won’t help. The issue here is that your table is too big.

2 Likes

So how can I fix this?
30chars

Save a smaller table instead. You can’t save that much data without splitting it up across multiple datastores.

2 Likes

Hmm, but, than big games like, New Haven County right, they save the plate, even when there’s probably stored like 1M+ Plates.
How do you think they might be doing it?

Also, another question, for datastores, can I do Ipairs loop on it?
like

for i,v in ipairs(datastoreser:GetDataStore('hi')) do print(i,v) end

Will this return all the values?

No, you’d have to individually GetAsync each key. Games store data like that by splitting it across multiple data stores, generally.

3 Likes