Smith machine help

Hello,
I m following a barbell gain program and was doing well. Recently moved to a new apartment and unfortunately, the setup of flat barbell is not available.

Instead, smith machine is available and I personally feel the benefit of flat bench press on smith machine won’t be great as free barbell.

However, I noticed an external hook on the smith machine and was wondering if this can be used to hold barbell and can support flat bench press.

Can some one pls explain a lil about smith machine safety bars and hooks and above mentioned problem can be resolved without using smith machine