Cloudy API Documentation
  • SETUP
    • Introduction
    • Setting Up Your Project
    • Update Log
    • Cloudy API Tutorial
    • Credits
  • FUNCTIONS
    • AutoInject
    • Inject
    • Execute
    • GetClientsList
    • RegisterExecutor
    • IsInjected
    • AutoSetup
    • disableSecurity
    • isRobloxOpen
    • CheckRobloxVersion
    • GetUsername
    • killRoblox
    • AskAi
    • Cleanres
    • SetDiscordRpc
    • IsAutoInjectEnabled
  • credits
  • GetUserIdFromUsername
  • GetAvatar
  • SetScriptJS
  • AddTabJS
  • GetDiscordUsername
  • cPlaceId
  • cPlaceName
  • cPlaceImage
  • CHAT FUNCTIONS
    • ConnectToServer
    • ReceiveMessages
    • SendMessage
    • Disconnect
    • OnMessageReceived
    • OnError
    • Messages
Powered by GitBook
On this page

GetAvatar

Retrieves a Roblox user's avatar Image as a BitmapImage using their username. Returns the avatar image if found, otherwise returns null.

Usage:

Api.misc.GetAvatar(string username);

Example:

BitmapImage avatar = Api.misc.GetAvatar("ArcaneDevz"); // Gets the avatar Image for username "ArcaneDevz"
if (avatar != null)
{
    Image avatarImage = new Image();
    avatarImage.Source = avatar;
}
PreviousGetUserIdFromUsernameNextSetScriptJS

Last updated 1 month ago