Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local Frame = vgui.Create( "DFrame" )
  2. Frame:SetSize( 600, 400 )
  3. Frame:Center()
  4. Frame:SetTitle( "Name window" )
  5. Frame:SetVisible( true )
  6. Frame:SetDraggable( false )
  7. Frame:ShowCloseButton( true )
  8. Frame:MakePopup()
  9.  
  10. local icon = vgui.Create( "DModelPanel", Frame )
  11. icon:SetSize( 400, 350 )
  12. icon:SetPos( 100, 0 )
  13. icon:SetModel( "models/player/alyx.mdl" ) -- you can only change colors on playermodels
  14. function icon:LayoutEntity( Entity ) return end -- disables default rotation
  15. function icon.Entity:GetPlayerColor() return Vector ( 1, 0, 0 ) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement