handlers.SetDefaultPlayerValues = function (args, context) { server.UpdateUserData({ PlayFabId: currentPlayerId, Data: { "XP": "0", "gender": "0", "Inventory": {"wood": "3", "water":"1"};
} }) };
I use this function to set my player data when a new player is created. XP and gender can be seen in the new created player's playerdata, but Inventory is missing, and I guess maybe I shouldn't write it like this {"wood": "3", "water":"1"}; . Does anyone have any idea how to fix this? Thank you.