DModelPanel/SetModel

From Garry's Mod
Jump to: navigation, search
 DModelPanel:SetModel( )

Contents

DescriptionPanelFunc

Sets the model of the rendered entity.

Arguments

string model

The model to apply to the entity

Examples

Example

Creates a new DModelPanel with the Kleiner playermodel.

local modelPanel = vgui.Create( "DModelPanel" )
modelPanel:SetPos( 0, 0 )
modelPanel:SetSize( 200, 200 )
modelPanel:SetModel( "models/player/kleiner.mdl" )


Personal tools
Navigation