P.AvatarImage

From GMod Wiki

Jump to: navigation, search

Usage

A Steam avatar image, can be used on anything

DescriptionCreates an avatar image of the local player parented to a simple frame.
Used onNewerClient.png
Code
 
local frame = vgui.Create("DFrame")
 
local av = vgui.Create("AvatarImage", frame)
av:SetPos(50,50)
av:SetSize(32, 32)
av:SetPlayer( LocalPlayer(), 32 )
 
frame:SetSize( ScrW()*0.25, ScrH()*0.25 )
frame:Center()
frame:SetVisible( true )
frame:MakePopup()
 
OutputDerma frame with the avatar image in it.


Methods

Panel.SetPlayer
Panel.GetPlayer

Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox