0 Members and 1 Guest are viewing this topic.
local icon = vgui.Create( "DModelPanel", SGS.mpanel ) icon:SetModel( LocalPlayer():GetModel() ) icon:SetSize( 104, 104 ) icon:SetCamPos( Vector( 15, 15, 60 ) ) icon:SetLookAt( Vector( 0, 0, 60 ) )
It's called a DModelPanel.http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index0d85.htmlYou can show any model with this VGUI panel. If you want to be able to update it dynamically, make sure you put it in a panel that can be removed and redrawn though.*EDIT* More specifically... Code: [Select] local icon = vgui.Create( "DModelPanel", SGS.mpanel ) icon:SetModel( LocalPlayer():GetModel() ) icon:SetSize( 104, 104 ) icon:SetCamPos( Vector( 15, 15, 60 ) ) icon:SetLookAt( Vector( 0, 0, 60 ) )