Garry's Mod Wiki

AvatarImage

Description

Used to show a player's Steam avatar. You are recommended but not limited to pick one of the following sizes: 16, 32, 64, 84, 128, 184.

Parent

Derives from Panel.

Example

Creates an AvatarImage with the LocalPlayer's avatar inside.

local Avatar = vgui.Create( "AvatarImage", Panel ) Avatar:SetSize( 64, 64 ) Avatar:SetPos( 4, 4 ) Avatar:SetPlayer( LocalPlayer(), 64 )

Page Links


Special Pages


Wikis

?

Render Time: 39ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 12
Render Body 0
Render Sidebar 10