To answer your question, we need to know the model of your Hyundai. There are 2 very different V6 engines used in that model year, in different Hyundai models.
The thermostat on the 2.7 is located under the water outlet on the front of the engine. I have provided you the only diagram from the service manual showing thermostat location to help you in replacing it.
Hope this is helpful; if so, please click my accept button! Thanks!