Load user data||doc136052

September 20, 2022

Format

 UserInfoCache.LoadCacheByUserIds(userIds, callback) 

Description

Request to load user data and execute callback function.


Parameters

Variable name type Description
userIds table An array containing multiple user ids, such as {1, 2, 3} (note that id cannot be of character type)
callback function Callback function for request completion


Value Returned

type Description
int request index


Code Samples

UserInfoCache.LoadCacheByUserIds({18512}, function()
    local info = UserInfoCache.GetCache(18512)
    Lib.pv(info)
end)