[Solved] How to freeze a ped 10 seconds after entering an interior

Hi everyone, I would like to be able to freeze a user when they enter a property.

This would avoid the problem of users falling off the map. Because they don’t have time to load the textures of the game.

The only solution I can think of is to write a line of code right after the user “teleports” from the door to the house.

If anyone could give me a hint of which function to use, I would appreciate it.

Regards
:slight_smile:

1 Like

Depends on what IPL loader you are using, but this native will work:

1 Like

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.

1 Like

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 :slight_smile:

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 :slight_smile: