Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetAvatar(steamid, callback)
- local avatar_url = ("http://steamcommunity.com/profiles/%s/?xml=1"):format(aowl.SteamIDToCommunityID(steamid))
- http.Get(avatar_url, "", function(c)
- local small = c:match("<avatarIcon>.-(http://.-jpg)")
- local medium = c:match("<avatarMedium>.-(http://.-jpg)")
- local big = c:match("<avatarFull>.-(http://.-jpg)")
- local data =
- {
- small = small,
- medium = medium,
- big = big
- }
- callback(data)
- end)
- end
- GetAvatar(me:SteamID(), PrintTable)
Advertisement
Add Comment
Please, Sign In to add comment