Garry's Mod Wiki

DModelPanel:SetModel

DModelPanel:SetModel( string model )

Description

Sets the model of the rendered entity.

Arguments

1 string model
The model to apply to the entity

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" )

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 2
SaveChanges 10
Render Body 0
Render Sidebar 14