From e60cf922eaf221328883a3f84ee9dcb1c218bb6f Mon Sep 17 00:00:00 2001 From: Fesiug Date: Mon, 13 Nov 2023 19:27:08 -0500 Subject: [PATCH] INV UI: Why didn't I do this before? --- gamemodes/benny/gamemode/modules/player/sh_basic.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gamemodes/benny/gamemode/modules/player/sh_basic.lua b/gamemodes/benny/gamemode/modules/player/sh_basic.lua index b42753b..75c9768 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_basic.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_basic.lua @@ -265,12 +265,13 @@ if CLIENT then -- PROTO: These functions don't need to be remade over and over like this. function button:DoClick() RunConsoleCommand("benny_inv_equip", button.ID) - timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end ) + -- timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end ) end function button:DoRightClick() RunConsoleCommand("benny_inv_discard", button.ID) - timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end ) + self:Remove() + -- timer.Simple( 0.1, function() if IsValid( itemlist ) then regen_items( itemlist ) end end ) end function button:Paint( w, h )