From e4fad85f0a94be268bd18767406c74d2ca18c5d6 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 21 May 2016 18:42:20 -0400 Subject: Fixed spawning with admin menu --- entities/entities/gms_renbuyshop.lua | 13 +++++++++++++ entities/entities/gms_rensellshop.lua | 13 +++++++++++++ gamemode/client/cl_inventory.lua | 1 - 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 entities/entities/gms_renbuyshop.lua create mode 100644 entities/entities/gms_rensellshop.lua diff --git a/entities/entities/gms_renbuyshop.lua b/entities/entities/gms_renbuyshop.lua new file mode 100644 index 0000000..f6f4f2b --- /dev/null +++ b/entities/entities/gms_renbuyshop.lua @@ -0,0 +1,13 @@ + +AddCSLuaFile() + +ENT.Base = "gms_base_entity" +ENT.PrintName = "Ren Buy Shop" + +ENT.Model = "models/props_lab/monitor02.mdl" + +if ( CLIENT ) then return end + +function ENT:OnUse( ply ) + ply:OpenCombiMenu( "gms_renbuyshop" ) +end diff --git a/entities/entities/gms_rensellshop.lua b/entities/entities/gms_rensellshop.lua new file mode 100644 index 0000000..75e43f4 --- /dev/null +++ b/entities/entities/gms_rensellshop.lua @@ -0,0 +1,13 @@ + +AddCSLuaFile() + +ENT.Base = "gms_base_entity" +ENT.PrintName = "Ren Sell Shop" + +ENT.Model = "models/props_c17/consolebox01a.mdl" + +if ( CLIENT ) then return end + +function ENT:OnUse( ply ) + ply:OpenCombiMenu( "gms_rensellshop" ) +end diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua index d0388e7..8f8969a 100644 --- a/gamemode/client/cl_inventory.lua +++ b/gamemode/client/cl_inventory.lua @@ -1006,7 +1006,6 @@ function PANEL:Init() local item = vgui.Create( "DButton" ) item:SetText( t.text ) item:SetTall( 26 ) - print(t.args) if (t.args != nil) then item:SetConsoleCommand( t.cmd, t.args ) else item:SetConsoleCommand( t.cmd ) end self.Spawning:AddItem( item ) end -- cgit v1.2.3-70-g09d2