A UTV cargo carrier can be attached to a roof rack in a few different ways depending on the design of the carrier and the roof rack. Some cargo carriers have built-in attachment points that allow them to be secured to the roof rack with bolts or clamps. Others may require additional mounting brackets or straps to secure them to the roof rack. It is important to carefully follow the manufacturer's instructions for attaching the carrier to ensure a secure and safe fit.