Created
January 5, 2019 01:31
-
-
Save pointydev/b3b2094ba7039ed6366a48668be5dee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddCSLuaFile() | |
properties.Add( "contextcopymodel", { | |
MenuLabel = "Copy Model", | |
Order = 999, | |
MenuIcon = "icon16/page_attach.png", | |
Filter = function( self, ent, ply ) | |
if ( !IsValid( ent ) ) then return false end | |
return true | |
end, | |
Action = function( self, ent ) | |
SetClipboardText(ent:GetModel()) | |
end | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment