You should take a look at how vMenu is teleporting a player, in this file around line 523 they load a bunch of stuff in order to prevent people from falling through the map.
Thank you very much for your answer, I opted for the laziest option which is to freeze the ped for a few seconds. Anyway, when I have more time, I will use your suggestion, which is more professional. Very friendly
Although both solutions are valid, the one you offered me is definitely the one that best suits my needs and I am happy about it. People like you really inspire newbies like me to keep going. Thank you so much