Veh teleportation - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Veh teleportation (
/showthread.php?tid=663252)
Veh teleportation -
calypsomen - 26.01.2019
Hi everybody,
I am posting this message after doing numerous tests on a vehicle teleportation problem that I really have trouble explaining.
Vehicles are well parked when I spawn and as soon as you enter an interior and get out, the vehicles are teleported in the middle of the road.
I thought of a problem with the streamer and the mappings but I don’t see any logic into this...
I hope you can help me.
After a Respawn of vehicles, they return to the right position :
But as soon as we get in and out of an interior:
Re: Veh teleportation -
Wanheda - 26.01.2019
Code please.
Re: Veh teleportation -
DavidZvla - 26.01.2019
Maybe can be, if your map is actually in
CreateDynamicObject.
When you go to interior and come back out, the server reload the map, but cars still there, so all vehicles falls down because the map isn't loaded yet, the cars reappears in the middle of the street.
To fix this, you have to create the parking spots, and platforms for cars with
CreateObject
That function keeps the object loaded for the player even if it is in the other corner of the map