summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-21 18:42:20 -0400
committerScott <scotth0828@gmail.com>2016-05-21 18:42:20 -0400
commite4fad85f0a94be268bd18767406c74d2ca18c5d6 (patch)
tree20ffc1604b0630870abff622a627149c129239d9
parent18e985e9e989190e937db0418910841e00f1c274 (diff)
downloadgmstranded-e4fad85f0a94be268bd18767406c74d2ca18c5d6.tar.gz
gmstranded-e4fad85f0a94be268bd18767406c74d2ca18c5d6.tar.bz2
gmstranded-e4fad85f0a94be268bd18767406c74d2ca18c5d6.zip
Fixed spawning with admin menu
-rw-r--r--entities/entities/gms_renbuyshop.lua13
-rw-r--r--entities/entities/gms_rensellshop.lua13
-rw-r--r--gamemode/client/cl_inventory.lua1
3 files changed, 26 insertions, 1 deletions
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