diff options
Diffstat (limited to 'gamemode')
| -rw-r--r-- | gamemode/itemsystem/common_dropable.lua | 2 | ||||
| -rw-r--r-- | gamemode/server/player_functions.lua | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gamemode/itemsystem/common_dropable.lua b/gamemode/itemsystem/common_dropable.lua index 94513d3..14d3da5 100644 --- a/gamemode/itemsystem/common_dropable.lua +++ b/gamemode/itemsystem/common_dropable.lua @@ -1,3 +1,5 @@ +--Adds a function to to allow the player to drop this item, in quantities of 1, half, all, or X, which brings up a menu asking the player how many they would like to drop + function genericMakeDroppable(tbl) if(SERVER) then return end local drop1 = function(player) diff --git a/gamemode/server/player_functions.lua b/gamemode/server/player_functions.lua index 09de491..4ef39fd 100644 --- a/gamemode/server/player_functions.lua +++ b/gamemode/server/player_functions.lua @@ -664,6 +664,13 @@ end function PlayerMeta:CancelProcess() if ( !self.InProcess ) then return end + --If we just clear it out, it should all be good. + for i = 1, 10 do + if(timer.Exists("GMS_ProcessTimer_" .. i)) then + timer.Destroy("GMS_ProcessTimer_" .. i) + end + end + GAMEMODE.ProcessThinkHookTable = {} timer.Destroy("process") self:Freeze(false) self.InProcess = false |
