function SwapLocalUpgradeFile(fileName, activator) local tfGamerule = ents.FindByClass("tf_gamerules") if not tfGamerule or not IsValid(tfGamerule) then print("no tf gamerule") return end print("previous", tfGamerule.m_pszCustomUpgradesFile) tfGamerule:SetFakeSendProp("m_pszCustomUpgradesFile", fileName) end function SwapUpgradeFile(fileName, activator) local tfGamerule = ents.FindByClass("tf_gamerules") if not tfGamerule or not IsValid(tfGamerule) then print("no tf gamerule") return end print("previous", tfGamerule.m_pszCustomUpgradesFile) tfGamerule.m_pszCustomUpgradesFile = fileName end