diff --git a/lua/ps2/client/cl_0_pointshop2.lua b/lua/ps2/client/cl_0_pointshop2.lua index fed4b171..b667eb8e 100644 --- a/lua/ps2/client/cl_0_pointshop2.lua +++ b/lua/ps2/client/cl_0_pointshop2.lua @@ -132,15 +132,16 @@ end ) -- Hide 1st person spectated player's parts function Pointshop2.HidePacOnSpectate( ) if LocalPlayer( ):GetObserverMode() == OBS_MODE_IN_EYE then + print("Pac Ignore") local ply = LocalPlayer( ):GetObserverTarget( ) LocalPlayer( ).lastSpecTarget = ply if IsValid( ply ) then - pac.ToggleIgnoreEntity( ply, true, "ps2_spectate_firstperson" ) + for k,v in pairs(ply.pac_outfits) do v:SetHide(true) end end else local ply = LocalPlayer( ).lastSpecTarget if IsValid( ply ) then - pac.ToggleIgnoreEntity( ply, false, "ps2_spectate_firstperson" ) + for k,v in pairs(ply.pac_outfits) do v:SetHide(false) end LocalPlayer( ).lastSpecTarget = nil end end