|
| 20 Jul 2016 08:49 AM |
i know how datastores and tables work but whats a good method for saving/loading tables
is it good to have the traditional values-in-player type of things but read the values and save them inside of a table?
is it also possible to mix values inside of a table to save or no? example:
tab = { "string"; 123; true; }
|
|
|
| Report Abuse |
|
|
|
| 20 Jul 2016 09:01 AM |
local data = { ["beatBoss1"] = true, ["inventory"] = { { ["name"] = "Potion", ["amount"] = 5, }, { ["name"] = "Iron Ore", ["amount"] = 1, }, } } |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2016 09:43 PM |
that doesnt really answer anything i asked
|
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 06:55 PM |
You have two different questions in your post Can you explain more clearly? |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 07:18 PM |
playerData = {exp, credits, {gun1id, gun2id}}
dataStore:SetAsync(plr.UserId,playerData) |
|
|
| Report Abuse |
|
|