From 488a2bb50f8ddf0442c8403180148e70533e8ca9 Mon Sep 17 00:00:00 2001 From: textstack <46581273+textstack@users.noreply.github.com> Date: Thu, 24 Jul 2025 14:51:52 -0400 Subject: [PATCH 1/2] owner validity check for viewer_steamid event --- lua/pac3/core/client/parts/event.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/pac3/core/client/parts/event.lua b/lua/pac3/core/client/parts/event.lua index d3faed68f..cf0cf2e6f 100644 --- a/lua/pac3/core/client/parts/event.lua +++ b/lua/pac3/core/client/parts/event.lua @@ -2898,8 +2898,9 @@ PART.OldEvents = { tutorial = "activates when the local player has the steamID specified", arguments = {{find = "string"}, {include_owner = "boolean"}}, callback = function(self, ent, find, include_owner) - if include_owner then - find = find .. ";" .. self:GetOwner():SteamID() + local owner = self:GetOwner() + if include_owner and owner:IsValid() then + find = find .. ";" .. owner:SteamID() end return self:StringOperator(pac.LocalPlayer:SteamID(), find) From 7461c93bd9135c32d6a146e6a94c56e19649e264 Mon Sep 17 00:00:00 2001 From: textstack <46581273+textstack@users.noreply.github.com> Date: Thu, 24 Jul 2025 14:57:40 -0400 Subject: [PATCH 2/2] change method for viewer_steamid owner --- lua/pac3/core/client/parts/event.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/pac3/core/client/parts/event.lua b/lua/pac3/core/client/parts/event.lua index cf0cf2e6f..981b03e3b 100644 --- a/lua/pac3/core/client/parts/event.lua +++ b/lua/pac3/core/client/parts/event.lua @@ -2898,7 +2898,7 @@ PART.OldEvents = { tutorial = "activates when the local player has the steamID specified", arguments = {{find = "string"}, {include_owner = "boolean"}}, callback = function(self, ent, find, include_owner) - local owner = self:GetOwner() + local owner = self:GetPlayerOwner() if include_owner and owner:IsValid() then find = find .. ";" .. owner:SteamID() end