From e79df7b48c3ada13c1cb95b7e7a65d42a62bcf5d Mon Sep 17 00:00:00 2001 From: TacticalToaster <31429229+TacticalToaster@users.noreply.github.com> Date: Sun, 21 Feb 2021 18:30:11 -0600 Subject: [PATCH] Added AdjustItemClientSideInfo Allows a way to adjust item tooltips outside of the items themselves. --- .../gamemodes/clockwork/framework/libraries/sh_item.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload/garrysmod/gamemodes/clockwork/framework/libraries/sh_item.lua b/upload/garrysmod/gamemodes/clockwork/framework/libraries/sh_item.lua index cef76ccd..de1045f9 100644 --- a/upload/garrysmod/gamemodes/clockwork/framework/libraries/sh_item.lua +++ b/upload/garrysmod/gamemodes/clockwork/framework/libraries/sh_item.lua @@ -802,6 +802,8 @@ else toolTip = itemTable:GetClientSideInfo(markupObject); end; + Clockwork.plugin:Call("AdjustItemClientSideInfo", itemTable, toolTip); + if (itemTable.GetClientSideDescription and itemTable:GetClientSideDescription()) then description = itemTable:GetClientSideDescription();