I had this hat hook by the creator Rudager on Thingiverse, but when I had my windows down the hat was constantly blown off the hook (it was designed for a hardhat tbf, not a ballcap).
I printed in PETG with a 0.6 nozzle at 0.4 layer height.
I would NOT suggest PLA unless where you live does not get very hot in the summer, otherwise it will melt. PETG or ASA/ABS is advised.
The author remixed this model.
I added a hook so it will not blow off even in very strong wind and it has been working great for me.