Skip to content

Instantly share code, notes, and snippets.

@pointydev
Created January 5, 2019 01:31
Show Gist options
  • Save pointydev/b3b2094ba7039ed6366a48668be5dee6 to your computer and use it in GitHub Desktop.
Save pointydev/b3b2094ba7039ed6366a48668be5dee6 to your computer and use it in GitHub Desktop.
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