Owl.Util.Data.Load(plr: Player, opts: table): Promise
Server OnlyLaunches an absolute cross-session load routine, initializing structured memory models from remote server driver endpoints.
Parameters
plr*Player | Target player asset whose persistent profiles need to be loaded. |
opts*table | Dictionary passing data store validation properties: unique 'storeName', structural base model 'schema' map patterns and operational data upgrade 'migrations' parameters. |
Returns
PromiseResolves with an exclusive active transactional OwlProfile instance wrap structure.
Owl.Util.Data.Load(player, {
storeName = "PlayerData_V1",
schema = { Coins = 100, Inventory = {} }, -- > // Can be a function who build a schema or a template
migrations = {
[1] = function(data)
data.Gems = 0
end
}
}):andThen(function(profile)
print("Profile successfully synchronized for player:", player.UserId)
end)