Unless the rental car is equipped with roof racks we do not advise on doing so. Most roofs are easily damaged and you will be held responsible for it.
Additionally motor vehicle laws in Costa Rica require all outside cargo to be firmly attached. You might get a traffic ticket for doing so.
Ask for our roof-racked equipped cars at the counter and avoid inconveniences.