Garry's Mod Wiki

Revision Difference

DModelPanel:SetModel#515982

<function name="SetModel" parent="DModelPanel" type="panelfunc"> <ispanel>yes</ispanel> <description>Sets the model of the rendered entity.</description>⤶ <realm>Client</realm> <args> <arg name="model" type="string">The model to apply to the entity</arg> </args> </function> <example> <description>Creates a new DModelPanel with the Kleiner playermodel.</description> <code> local modelPanel = vgui.Create( "DModelPanel" ) modelPanel:SetPos( 0, 0 ) modelPanel:SetSize( 200, 200 ) modelPanel:SetModel( "models/player/kleiner.mdl" ) </code> </example>