Motor Sınıfı
UserService
*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.
Özet
Yöntemler
GetUserInfosByUserIdsAsync(userIds: {any}):{any} |
GetUserFromGlobalUserIdAsync(userId: number):User |
API Referansı
Yöntemler
GetUserInfosByUserIdsAsync
Parametreler
Dönüşler
Kod Örnekleri
UserService:GetUserInfosByUserIdsAsync Örneği
local UserService = game:GetService("UserService")
local success, result = pcall(function()
return UserService:GetUserInfosByUserIdsAsync({ 156, 1, 735878936 })
end)
if success then
for _, userInfo in ipairs(result) do
print("Id:", userInfo.Id)
print("Kullanıcı Adı:", userInfo.Username)
print("Görünen Ad:", userInfo.DisplayName)
end
else
-- Bir hata oluştu
end