This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

View File

@@ -0,0 +1,51 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
TOOL.AddToMenu = false
TOOL.ClientConVar[ "type" ] = "0"
TOOL.ClientConVar[ "name" ] = "0"
TOOL.ClientConVar[ "arg" ] = "0"
TOOL.Information = { { name = "left" } }
function TOOL:LeftClick( trace, attach )
local type = self:GetClientNumber( "type", 0 )
local name = self:GetClientInfo( "name" )
local arg = self:GetClientInfo( "arg" )
if ( CLIENT ) then return true end
if ( type == 0 ) then
Spawn_SENT( self:GetOwner(), name, trace )
elseif ( type == 1 ) then
Spawn_Vehicle( self:GetOwner(), name, trace )
elseif ( type == 2 ) then
Spawn_NPC( self:GetOwner(), name, arg, trace )
elseif ( type == 3 ) then
Spawn_Weapon( self:GetOwner(), name, trace )
elseif ( type == 4 ) then
CCSpawn( self:GetOwner(), nil, { name } ) -- Props
end
return true
end