Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Frame = vgui.Create( "DFrame" )
- Frame:SetSize( 600, 400 )
- Frame:Center()
- Frame:SetTitle( "Name window" )
- Frame:SetVisible( true )
- Frame:SetDraggable( false )
- Frame:ShowCloseButton( true )
- Frame:MakePopup()
- local icon = vgui.Create( "DModelPanel", Frame )
- icon:SetSize( 400, 350 )
- icon:SetPos( 100, 0 )
- icon:SetModel( "models/player/alyx.mdl" ) -- you can only change colors on playermodels
- function icon:LayoutEntity( Entity ) return end -- disables default rotation
- function icon.Entity:GetPlayerColor() return Vector ( 1, 0, 0 ) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement